use deleteMany instead

v1.18.x
barisusakli 8 years ago
parent cf6c4667c8
commit fdee61b4f4

@ -454,7 +454,7 @@ Upgrade.upgrade = function (callback) {
next(err); next(err);
}); });
} else { } else {
db.client.collection('sessions').drop({}, function (err) { db.client.collection('sessions').deleteMany({}, {}, function (err) {
next(err); next(err);
}); });
} }

Loading…
Cancel
Save