From e1fc80f6bbb1dfc40aa70f69b5eeae0cd0de6cd0 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Thu, 28 Aug 2025 19:18:37 +0200
Subject: [PATCH] search senderCom with publicKey as Buffer(string, hex)
---
backend/src/graphql/resolver/TransactionLinkResolver.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.ts b/backend/src/graphql/resolver/TransactionLinkResolver.ts
index e4d042914..8432ae9d5 100644
--- a/backend/src/graphql/resolver/TransactionLinkResolver.ts
+++ b/backend/src/graphql/resolver/TransactionLinkResolver.ts
@@ -630,7 +630,7 @@ export class TransactionLinkResolver {
decodedPayload.jwt,
decodedPayload.handshakeID)
logger.debug('queryRedeemJwtLink... signedTransferPayload=', signedTransferPayload)
- const senderCom = await getCommunityByPublicKey(Buffer.from(signedTransferPayload.publicKey))
+ const senderCom = await getCommunityByPublicKey(Buffer.from(signedTransferPayload.publicKey, 'hex'))
if (!senderCom) {
const errmsg = `Sender community not found with publicKey=${signedTransferPayload.publicKey}`
logger.error(errmsg)