mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
feat: #7743 categories
This commit is contained in:
@@ -38,7 +38,9 @@ module.exports = function (db, module) {
|
||||
return;
|
||||
}
|
||||
var query = { _key: { $in: keys } };
|
||||
|
||||
if (keys.length === 1) {
|
||||
query._key = keys[0];
|
||||
}
|
||||
if (min !== '-inf') {
|
||||
query.score = { $gte: parseFloat(min) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user