mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
Fix mongo operator (#2380)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
parent
675e6def8f
commit
074eabbce6
@ -340,7 +340,7 @@ export async function listWorkspaces (db: Db, productId: string): Promise<Worksp
|
||||
if (productId === '') {
|
||||
return await db
|
||||
.collection<Workspace>(WORKSPACE_COLLECTION)
|
||||
.find({ productId: { $exits: false } })
|
||||
.find({ productId: { $exists: false } })
|
||||
.toArray()
|
||||
}
|
||||
return await db.collection<Workspace>(WORKSPACE_COLLECTION).find({ productId }).toArray()
|
||||
|
Loading…
Reference in New Issue
Block a user