mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
QFix list of workspaces (#7452)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user