v1.18.x
barisusakli 10 years ago
parent 72e14e6db6
commit c33b369858

@ -154,11 +154,9 @@ module.exports = function(Topics) {
return callback();
}
tids = tids.filter(Boolean);
var now = Date.now();
var scores = tids.map(function(tid) {
return now;
});
if (!tids.length) {
return callback();
}
async.parallel({
topicScores: function(next) {
@ -180,6 +178,11 @@ module.exports = function(Topics) {
return callback();
}
var now = Date.now();
var scores = tids.map(function(tid) {
return now;
});
async.parallel({
markRead: function(next) {
db.sortedSetAdd('uid:' + uid + ':tids_read', scores, tids, next);

Loading…
Cancel
Save