mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 01:09:56 +01:00
lint
This commit is contained in:
@@ -104,7 +104,7 @@ module.exports = function (db, module) {
|
||||
module.listLength = function (key, callback) {
|
||||
db.collection('objects').aggregate([
|
||||
{ $match: { _key: key } },
|
||||
{ $project: { count: { $size: "$array" } } },
|
||||
{ $project: { count: { $size: '$array' } } },
|
||||
], function (err, result) {
|
||||
callback(err, Array.isArray(result) && result.length && result[0].count);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user