added db function

v1.18.x
Baris Usakli 11 years ago
parent 58df656c65
commit 215b919362

@ -245,13 +245,11 @@ var async = require('async'),
}
async.eachSeries(results.expiredNids, function(nid, next) {
var multi = RDB.multi();
for(var x=0; x<results.inboxes.length; ++x) {
multi.zscore(results.inboxes[x], nid);
db.sortedSetsScore(results.inboxes, function(err, results) {
if(err) {
return next(err);
}
multi.exec(function(err, results) {
// If the notification is not present in any inbox, delete it altogether
var expired = results.every(function(present) {
if (present === null) {

Loading…
Cancel
Save