Update mongodb to the latest version 🚀 (#5914)

* fix(package): update mongodb to version 3.3.0

* chore(package): update lockfile package-lock.json

* Fix tests

* Fix GraphQL tests for read preference

* Fix mongo adapter deprecation notice

* Fix the way the connections are checked, return promise when shutting down mongo
This commit is contained in:
greenkeeper[bot]
2019-08-14 01:25:49 +00:00
committed by peril-parse-community[bot]
parent 6760ceb836
commit 4c1be61bed
7 changed files with 170 additions and 167 deletions

View File

@@ -117,8 +117,12 @@ class ParseServer {
handleShutdown() {
const { adapter } = this.config.databaseController;
if (adapter && typeof adapter.handleShutdown === 'function') {
adapter.handleShutdown();
const promise = adapter.handleShutdown();
if (promise instanceof Promise) {
return promise;
}
}
return Promise.resolve();
}
/**