mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
QFix list of workspaces (#7452)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
942a6c768f
commit
5832ac119a
@ -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
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user