mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
feat: use db.sortedSetsAdd
This commit is contained in:
@@ -68,10 +68,10 @@ events.log = function (data, callback) {
|
||||
|
||||
async.parallel([
|
||||
function (next) {
|
||||
db.sortedSetAdd('events:time', data.timestamp, eid, next);
|
||||
},
|
||||
function (next) {
|
||||
db.sortedSetAdd('events:time:' + data.type, data.timestamp, eid, next);
|
||||
db.sortedSetsAdd([
|
||||
'events:time',
|
||||
'events:time:' + data.type,
|
||||
], data.timestamp, eid, next);
|
||||
},
|
||||
function (next) {
|
||||
db.setObject('event:' + eid, data, next);
|
||||
|
||||
Reference in New Issue
Block a user