mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 01:15:27 +02:00
fix redis tests
This commit is contained in:
@@ -74,7 +74,7 @@ module.exports = function (Topics) {
|
||||
db.sortedSetAdd('topics:views', topicData.viewcount, tid, next);
|
||||
},
|
||||
function (next) {
|
||||
db.sortedSetAdd('topics:votes', topicData.votes, tid, next);
|
||||
db.sortedSetAdd('topics:votes', parseInt(topicData.votes, 10) || 0, tid, next);
|
||||
},
|
||||
function (next) {
|
||||
async.waterfall([
|
||||
|
||||
@@ -186,7 +186,7 @@ module.exports = function (Topics) {
|
||||
async.apply(db.sortedSetRemove, 'cid:' + topicData.cid + ':tids:pinned', tid),
|
||||
async.apply(db.sortedSetAdd, 'cid:' + topicData.cid + ':tids', topicData.lastposttime, tid),
|
||||
async.apply(db.sortedSetAdd, 'cid:' + topicData.cid + ':tids:posts', topicData.postcount, tid),
|
||||
async.apply(db.sortedSetAdd, 'cid:' + topicData.cid + ':tids:votes', topicData.votes, tid),
|
||||
async.apply(db.sortedSetAdd, 'cid:' + topicData.cid + ':tids:votes', parseInt(topicData.votes, 10) || 0, tid),
|
||||
], next);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user