log when a community is verified successfully

This commit is contained in:
Ulf Gebhardt 2023-05-12 15:35:22 +02:00
parent 853b441996
commit e924d0bb97
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -41,6 +41,7 @@ export async function validateCommunities(): Promise<void> {
const pubKey = await client?.getPublicKey()
if (pubKey && pubKey === dbCom.publicKey.toString()) {
await DbFederatedCommunity.update({ id: dbCom.id }, { verifiedAt: new Date() })
logger.info('Federation: verified community', dbCom)
} else {
logger.warn(
'Federation: received not matching publicKey:',