fix crash in topic move

This commit is contained in:
barisusakli
2014-06-23 16:22:05 -04:00
parent ae72d8ab7e
commit a9adfe9428

View File

@@ -77,7 +77,9 @@ module.exports = function(Categories) {
db.incrObjectFieldBy('category:' + newCid, 'post_count', postCount, next);
}
], function(err) {
winston.error(err.message);
if (err) {
winston.error(err.message);
}
});
});
}