@ -124,7 +124,7 @@ module.exports = function (Posts) {
return topic && parseInt(topic.cid, 10);
});
cids = _.unique(cids);
cids = _.uniq(cids);
categories.getCategoriesFields(cids, ['cid', 'name', 'icon', 'slug', 'parentCid', 'bgColor', 'color'], next);
},
@ -115,7 +115,6 @@ module.exports = function (Topics) {
db.setObjectField('topic:' + tid, field, value, callback);
};
Topics.setTopicFields = function (tid, data, callback) {
callback = callback || function () {};
db.setObject('topic:' + tid, data, callback);