fix: logo fetch issue

This commit is contained in:
prafull-opensignlabs
2024-04-11 13:40:08 +05:30
parent ce70da7d8e
commit f1ceae794f
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,15 @@
import getPresignedUrl from './getSignedUrl.js';
async function TenantAterFind(request) {
if (request.objects.length === 1) {
if (request.objects) {
const obj = request.objects[0];
const Logo = obj?.get('Logo') && obj?.get('Logo');
if (Logo) {
obj.set('Logo', getPresignedUrl(Logo));
}
return [obj];
}
}
}
export default TenantAterFind;