From 7f74c03fc5dbb1b85617f7fa5b36d07f206984bd Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 14 Oct 2025 09:38:34 +0200 Subject: [PATCH] log --- .../src/graphql/api/1_0/resolver/AuthenticationResolver.ts | 1 + shared/src/helper/BinaryData.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts b/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts index 6712c47d5..2c5853d17 100644 --- a/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts +++ b/federation/src/graphql/api/1_0/resolver/AuthenticationResolver.ts @@ -171,6 +171,7 @@ export class AuthenticationResolver { } authCom.communityUuid = communityUuid.data authCom.authenticatedAt = new Date() + methodLogger.debug('try to save: ', authCom) await authCom.save() methodLogger.debug('store authCom.uuid successfully:', new CommunityLoggingView(authCom)) const homeComB = await getHomeCommunity() diff --git a/shared/src/helper/BinaryData.ts b/shared/src/helper/BinaryData.ts index aeff97029..756d3ed3c 100644 --- a/shared/src/helper/BinaryData.ts +++ b/shared/src/helper/BinaryData.ts @@ -39,10 +39,7 @@ export class BinaryData { logging.error('other is invalid', other) return false } - return this.asHex() === other.asHex() - // don't work reliable, in specific cases fail with: - // The "otherBuffer" argument must be an instance of Buffer or Uint8Array. Received an instance of Object - // return this.buf.compare(other.asBuffer()) === 0 + return this.buf.compare(other.asBuffer()) === 0 } }