aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-10 19:45:13 +0300
committereug-vs <eug-vs@keemail.me>2020-06-10 19:45:43 +0300
commit0915870f347eecbf5d1646fa732e2a73418960a6 (patch)
tree0782ed38b0f6ec1ac00251423b36c1141d3d6573 /index.ts
parentb0daa9b051c9f44266fc4cbd1fbe8b704fe1fc81 (diff)
downloadwhich-api-0915870f347eecbf5d1646fa732e2a73418960a6.tar.gz
feat: use bluebird promise globally
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.ts b/index.ts
index b358fdb..6db8929 100644
--- a/index.ts
+++ b/index.ts
@@ -1,8 +1,8 @@
import app from './app';
import mongoose from 'mongoose';
+import Promise from 'bluebird';
-
-mongoose.Promise = global.Promise;
+mongoose.Promise = Promise;
mongoose.connect('mongodb://localhost:27017/which', { useNewUrlParser: true });