|
|
@ -250,9 +250,10 @@ module.exports = function (Topics) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Topics.updateLastPostTime = function (tid, lastposttime, callback) {
|
|
|
|
Topics.updateLastPostTime = function (tid, lastposttime, callback) {
|
|
|
|
async.parallel([
|
|
|
|
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
Topics.setTopicField(tid, 'lastposttime', lastposttime, next);
|
|
|
|
|
|
|
|
},
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
Topics.getTopicFields(tid, ['cid', 'deleted', 'pinned'], next);
|
|
|
|
Topics.getTopicFields(tid, ['cid', 'deleted', 'pinned'], next);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -270,11 +271,6 @@ module.exports = function (Topics) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async.series(tasks, next);
|
|
|
|
async.series(tasks, next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
], next);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
function (next) {
|
|
|
|
|
|
|
|
Topics.setTopicField(tid, 'lastposttime', lastposttime, next);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
], function (err) {
|
|
|
|
], function (err) {
|
|
|
|
callback(err);
|
|
|
|
callback(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|