Skip to content

Commit 4ab2e4b

Browse files
authored
Update query.js
1 parent 458ea69 commit 4ab2e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function Query(conditions, options, model, collection) {
168168
// Helper function to check if an object is empty or contains only empty objects/arrays
169169
function isEmptyFilter(obj) {
170170
if (obj == null) return true;
171-
if (typeof obj !== 'object' || obj === null) return false;
171+
if (typeof obj !== 'object') return true;
172172
if (Object.keys(obj).length === 0) return true;
173173

174174
// Check $and, $or, $nor arrays

0 commit comments

Comments
 (0)