try workaround

This commit is contained in:
einhornimmond 2025-10-14 10:11:22 +02:00
parent 83f2965299
commit 412557b76d
2 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,7 @@ export class AuthenticationResolver {
)
}
methodLogger.debug('before loading auth community again from db')
const authComFresh = await getCommunityByPublicKeyOrFail(authComPublicKey)
const authComFresh = await getCommunityByPublicKeyOrFail(argsPublicKey)
authComFresh.communityUuid = communityUuid.data
authComFresh.authenticatedAt = new Date()
methodLogger.debug('after loading auth community again from db')

View File

@ -27,6 +27,10 @@ export class BinaryData {
}
asBuffer(): Buffer {
if (!this.buf || !Buffer.isBuffer(this.buf)) {
logging.warn('BinaryData.buf is invalid, try to create fresh buffer from hex')
this.buf = Buffer.from(this.hex, 'hex')
}
return this.buf
}