Skip to content

Commit 0915870

Browse files
committed
feat: use bluebird promise globally
1 parent b0daa9b commit 0915870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import app from './app';
22
import mongoose from 'mongoose';
3+
import Promise from 'bluebird';
34

4-
5-
mongoose.Promise = global.Promise;
5+
mongoose.Promise = Promise;
66

77
mongoose.connect('mongodb://localhost:27017/which', { useNewUrlParser: true });
88

0 commit comments

Comments
 (0)