set authenticateAt on resolver side

This commit is contained in:
Claus-Peter Huebner 2023-10-26 00:17:52 +02:00
parent 6f321cb9dc
commit 8a861b3fec

View File

@ -69,6 +69,7 @@ export class AuthenticationResolver {
if (authCom) {
// TODO decrypt args.uuid with authCom.publicKey
authCom.communityUuid = args.uuid
authCom.authenticatedAt = new Date()
await DbCommunity.save(authCom)
logger.debug('Authentication: store authCom.uuid successfully:', authCom)
const homeCom = await DbCommunity.findOneByOrFail({ foreign: false })