From eec4f67335654b62bf3d79d5214a883cf8cec4a3 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 1 Jun 2023 11:52:57 +0600 Subject: [PATCH] Fix email confirmation (#3316) Signed-off-by: Denis Bykhov --- server/account/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } /**