diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js index 3edaea5392..2bf159f25d 100644 --- a/src/database/mongo/sorted.js +++ b/src/database/mongo/sorted.js @@ -180,6 +180,10 @@ module.exports = function(db, module) { return item.value; }); + data = data.filter(function(value, index, array) { + return array.indexOf(value) === index; + }); + callback(null, data); }); }