xpress-mongo
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "xpress-mongo", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Light Weight ODM for mongoDb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -779,3 +779,4 @@ "use strict"; | ||
*/ | ||
return (await this.native().findOne(where, { projection: { _id: 1 } })) !== null; | ||
const find = await this.native().findOne(where, { projection: { _id: 1 } }); | ||
return ![null, undefined].includes(find); | ||
} | ||
@@ -782,0 +783,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100151
3135