fix method name

v1.18.x
Barış Soner Uşaklı 7 years ago
parent f42119673f
commit 1019feb569

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

Loading…
Cancel
Save