From 3b9ff8a4a4e92f8fbbb6179ca0ee0b0b9661d041 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Mon, 14 Jul 2025 18:00:06 +0200 Subject: [PATCH] explicit result assignment at client invocations --- backend/src/federation/authenticateCommunities.ts | 3 ++- federation/src/graphql/api/1_0/util/authenticateCommunity.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/federation/authenticateCommunities.ts b/backend/src/federation/authenticateCommunities.ts index 2227f2c13..f7a79772a 100644 --- a/backend/src/federation/authenticateCommunities.ts +++ b/backend/src/federation/authenticateCommunities.ts @@ -59,7 +59,8 @@ export async function startCommunityAuthentication( args.jwt = jws args.handshakeID = handshakeID logger.debug('before client.openConnection() args:', args) - if (await client.openConnection(args)) { + const result = await client.openConnection(args) + if (result) { logger.debug(`successful initiated at community:`, fedComB.endPoint) } else { logger.error(`can't initiate at community:`, fedComB.endPoint) diff --git a/federation/src/graphql/api/1_0/util/authenticateCommunity.ts b/federation/src/graphql/api/1_0/util/authenticateCommunity.ts index 57a0d7fe5..ca60eb80e 100644 --- a/federation/src/graphql/api/1_0/util/authenticateCommunity.ts +++ b/federation/src/graphql/api/1_0/util/authenticateCommunity.ts @@ -63,7 +63,8 @@ export async function startOpenConnectionCallback( args.publicKey = homeComB!.publicKey.toString('hex') args.jwt = jwt args.handshakeID = handshakeID - if (await client.openConnectionCallback(args)) { + const result = await client.openConnectionCallback(args) + if (result) { logger.debug('startOpenConnectionCallback() successful:', jwt) } else { logger.error('startOpenConnectionCallback() failed:', jwt)