mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-25 09:02:33 +02:00
v2.13.1
fix: Adapter prototype don't match expected prototype during fix: drive get crash if signer array is null
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user