mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
switch back from findByOne to findOneByOrFail
This commit is contained in:
parent
d991606d93
commit
9ae71f6a03
@ -43,9 +43,9 @@ export class AuthenticationResolver {
|
||||
logger.removeContext('handshakeID')
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const fedComA = await DbFedCommunity.findOneBy({ publicKey: Buffer.from(args.publicKey, 'hex') })
|
||||
logger.debug('fedComA', new FederatedCommunityLoggingView(fedComA!))
|
||||
if (fedComA && !openConnectionJwtPayload.url.startsWith(fedComA.endPoint)) {
|
||||
const fedComA = await DbFedCommunity.findOneByOrFail({ publicKey: Buffer.from(args.publicKey, 'hex') })
|
||||
logger.debug('fedComA', new FederatedCommunityLoggingView(fedComA))
|
||||
if (!openConnectionJwtPayload.url.startsWith(fedComA.endPoint)) {
|
||||
const errmsg = `invalid url of community with publicKey` + args.publicKey
|
||||
logger.error(errmsg)
|
||||
logger.removeContext('handshakeID')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user