diff --git a/src/database/mongo/main.js b/src/database/mongo/main.js index 4c18fbc634..045bc2c5bc 100644 --- a/src/database/mongo/main.js +++ b/src/database/mongo/main.js @@ -37,7 +37,7 @@ module.exports = function(db, module) { if (Array.isArray(data.cid) && data.cid.length) { data.cid = data.cid.filter(Boolean); - if (data.cid.length > 1) { + if (data.cid.length > 1) { searchQuery.cid = {$in: data.cid.map(String)}; } else if (data.cid[0]) { searchQuery.cid = data.cid[0].toString();