fix: Adapter prototype don't match expected prototype during
fix: drive get crash if signer array is null
This commit is contained in:
prafull-opensignlabs
2025-02-21 07:18:47 +00:00
parent 1f6c2c7d38
commit 92b507e621
51 changed files with 772 additions and 647 deletions
@@ -1,3 +1,5 @@
import { appName } from '../../Utils.js';
// `GetLogoByDomain` is used to get logo by domain as well as check any tenant exist or not in db
export default async function GetLogoByDomain(request) {
const domain = request.params.domain;
@@ -7,14 +9,14 @@ export default async function GetLogoByDomain(request) {
const res = await tenantCreditsQuery.first();
if (res) {
const updateRes = JSON.parse(JSON.stringify(res));
return { logo: updateRes?.Logo, user: 'exist' };
return { logo: updateRes?.Logo, appname: appName, user: 'exist' };
} else {
const tenantCreditsQuery = new Parse.Query('partners_Tenant');
const tenantRes = await tenantCreditsQuery.first();
if (tenantRes) {
return { logo: '', user: 'exist' };
return { logo: '', appname: appName, user: 'exist' };
} else {
return { logo: '', user: 'not_exist' };
return { logo: '', appname: appName, user: 'not_exist' };
}
}
} catch (err) {