Fix email confirmation (#3316)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-06-01 12:52:57 +07:00
committed by GitHub
parent 2dfe0f330c
commit eec4f67335
+3 -1
View File
@@ -229,7 +229,9 @@ async function getAccountInfoByToken (db: Db, productId: string, token: string):
if (account === null) {
throw new PlatformError(new Status(Severity.ERROR, accountPlugin.status.AccountNotFound, { account: email }))
}
return toAccountInfo(account)
const res = toAccountInfo(account)
res.confirmed = res.confirmed ?? true
return res
}
/**