diff --git a/src/upgrade.js b/src/upgrade.js index f7c20f3c89..8cba76974d 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -454,7 +454,7 @@ Upgrade.upgrade = function (callback) { next(err); }); } else { - db.client.collection('sessions').drop({}, function (err) { + db.client.collection('sessions').deleteMany({}, {}, function (err) { next(err); }); }