We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c76f466 + c040695 commit abbee9cCopy full SHA for abbee9c
index.js
@@ -1,11 +1,13 @@
1
-import Promise from 'bluebird';
2
import mongoose from 'mongoose';
3
import util from 'util';
4
import config from './config/env';
5
import app from './config/express';
6
7
const debug = require('debug')('express-mongoose-es6-rest-api:index');
8
+// make bluebird default Promise
9
+Promise = require('bluebird'); // eslint-disable-line no-global-assign
10
+
11
// plugin bluebird promise in mongoose
12
mongoose.Promise = Promise;
13
0 commit comments