mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
use wrapper functions getPostsFields and getTopicsFields
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user