mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-14 17:33:46 +02:00
pass array to groups.destroy
pass array to db.sortedSetRemove
This commit is contained in:
@@ -96,16 +96,10 @@ function deleteUserNids(nids, uid, callback) {
|
||||
if (!nids.length) {
|
||||
return setImmediate(callback);
|
||||
}
|
||||
async.parallel([
|
||||
function (next) {
|
||||
db.sortedSetRemove('uid:' + uid + ':notifications:read', nids, next);
|
||||
},
|
||||
function (next) {
|
||||
db.sortedSetRemove('uid:' + uid + ':notifications:unread', nids, next);
|
||||
},
|
||||
], function (err) {
|
||||
callback(err);
|
||||
});
|
||||
db.sortedSetRemove([
|
||||
'uid:' + uid + ':notifications:read',
|
||||
'uid:' + uid + ':notifications:unread',
|
||||
], nids, callback);
|
||||
}
|
||||
|
||||
function getNotifications(uid, start, stop, callback) {
|
||||
|
||||
Reference in New Issue
Block a user