From 5832ac119a7d2f471652a95e9d82140eec1e7fac Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 13 Dec 2024 19:07:07 +0700 Subject: [PATCH] QFix list of workspaces (#7452) Signed-off-by: Andrey Sobolev --- server/account/src/operations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/account/src/operations.ts b/server/account/src/operations.ts index fca23f3147..9ca8bef3b8 100644 --- a/server/account/src/operations.ts +++ b/server/account/src/operations.ts @@ -1672,7 +1672,7 @@ export async function getAllWorkspaces ( } return (await db.workspace.find({})).map((it) => { - it.accounts = it.accounts.map((it) => it.toString()) + it.accounts = (it.accounts ?? []).map((it) => it.toString()) return it }) }