This commit is contained in:
Barış Soner Uşaklı
2018-05-10 16:31:16 -04:00
parent 91e6f79f08
commit 3b5d6951bb
8 changed files with 16 additions and 14 deletions

View File

@@ -108,7 +108,7 @@ module.exports = function (db, module) {
return getFromCache();
}
db.collection('objects').find({ _key: { $in: nonCachedKeys } }, { _id: 0 }).toArray(function (err, data) {
db.collection('objects').find({ _key: { $in: nonCachedKeys } }, { projection: { _id: 0 } }).toArray(function (err, data) {
if (err) {
return callback(err);
}