fix: missing credintials in config aws_config_file

This commit is contained in:
prafull-opensignlabs
2024-04-25 12:16:45 +05:30
parent cf6759ce79
commit 14ce91350e
8 changed files with 81 additions and 69 deletions
@@ -1,14 +1,17 @@
import { useLocal } from '../../Utils.js';
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));
if (useLocal !== 'true') {
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];
}
return [obj];
}
}
}