Fix mongo operator (#2380)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov
2022-11-15 15:24:49 +07:00
committed by GitHub
parent 675e6def8f
commit 074eabbce6
+1 -1
View File
@@ -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()