diff --git a/app/modules/bma/lib/controllers/wot.ts b/app/modules/bma/lib/controllers/wot.ts index 9651cb9f2e374344ce0e771dcf6cb9db8533e4e5..17e57ed83629f8c545e6f5d05a68a1fdce4b48de 100644 --- a/app/modules/bma/lib/controllers/wot.ts +++ b/app/modules/bma/lib/controllers/wot.ts @@ -135,12 +135,11 @@ export class WOTBinding extends AbstractController { let idty: FullIindexEntry; if (req.query.pubkey) { idty = (await this.server.dal.getWrittenIdtyByPubkeyForHashingAndIsMember( - search + search )) as FullIindexEntry; - } - else { + } else { idty = (await this.server.dal.getWrittenIdtyByPubkeyOrUIdForHashingAndIsMember( - search + search )) as FullIindexEntry; } const certs = await this.server.dal.certsToTarget( @@ -240,10 +239,9 @@ export class WOTBinding extends AbstractController { let idty: FullIindexEntry; if (req.query.pubkey) { idty = (await this.server.dal.getWrittenIdtyByPubkeyForHashingAndIsMember( - search + search )) as FullIindexEntry; - } - else { + } else { idty = (await this.server.dal.getWrittenIdtyByPubkeyOrUIdForHashingAndIsMember( search )) as FullIindexEntry;