Fix email confirmation (#3316)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-01 11:52:57 +06:00 committed by GitHub
parent 2dfe0f330c
commit eec4f67335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}
/**