Skip to content

Commit 73bca3b

Browse files
committed
Improve comments
1 parent 6311c95 commit 73bca3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Controllers/DatabaseController.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ DatabaseController.prototype.addInObjectIdsIds = function(ids = null, query) {
504504
idsIntersection = intersect(allIds);
505505
}
506506

507-
// Need to make sure we don't clobber existing $lt or other constraints on objectId
507+
// Need to make sure we don't clobber existing $lt or other constraints on objectId.
508+
// Clobbering $eq, $in and shorthand $eq (query.objectId === 'string') constraints
509+
// is expected though.
508510
if (!('objectId' in query) || typeof query.objectId === 'string') {
509511
query.objectId = {};
510512
}

0 commit comments

Comments
 (0)