Fix mongo operator (#2380)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov 2022-11-15 14:24:49 +06:00 committed by GitHub
parent 675e6def8f
commit 074eabbce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()