mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
posts:votes sorted set
This commit is contained in:
@@ -248,6 +248,9 @@ var plugins = require('./plugins');
|
||||
},
|
||||
], next);
|
||||
},
|
||||
function (next) {
|
||||
db.sortedSetAdd('posts:votes', postData.votes, postData.pid, next);
|
||||
},
|
||||
function (next) {
|
||||
Posts.setPostFields(postData.pid, { upvotes: postData.upvotes, downvotes: postData.downvotes }, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user