diff --git a/server/account/src/index.ts b/server/account/src/index.ts index 94c86634f1..858ace36b0 100644 --- a/server/account/src/index.ts +++ b/server/account/src/index.ts @@ -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 } /**