QFix list of workspaces (#7452)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-12-13 19:07:07 +07:00 committed by GitHub
parent 942a6c768f
commit 5832ac119a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
})
}