mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-18 05:35:50 +02:00
19 lines
484 B
JavaScript
19 lines
484 B
JavaScript
import { useLocal } from '../../Utils.js';
|
|
import getPresignedUrl from './getSignedUrl.js';
|
|
|
|
async function TenantAterFind(request) {
|
|
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];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
export default TenantAterFind;
|