From 6ca275fa3062c4303a40e7bd9ac0d0502ce038c0 Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Tue, 24 Oct 2023 20:57:08 +0200 Subject: [PATCH] search publicKey as Buffer.from with hex --- .../src/graphql/api/1_0/resolver/AuthenticationResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts b/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts index d1595cd35..ea942e0f4 100644 --- a/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts +++ b/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts @@ -22,7 +22,7 @@ export class AuthenticationResolver { // first find with args.publicKey the community, which starts openConnection request const requestedCom = await DbCommunity.findOneBy({ - publicKey: Buffer.from(args.publicKey), + publicKey: Buffer.from(args.publicKey, 'hex'), }) if (!requestedCom) { throw new LogError(`unknown requesting community with publicKey`, args.publicKey)