use wrapper functions getPostsFields and getTopicsFields

This commit is contained in:
barisusakli
2014-11-14 20:19:10 -05:00
parent 9a606246a9
commit 52c12fa1b1
8 changed files with 21 additions and 49 deletions

View File

@@ -135,11 +135,8 @@ module.exports = function(Categories) {
done = true;
return next();
}
var keys = movePids.map(function(pid) {
return 'post:' + pid;
});
db.getObjectsFields(keys, ['timestamp'], function(err, postData) {
posts.getPostsFields(movePids, ['timestamp'], function(err, postData) {
if (err) {
return next(err);
}