Browse Source

Added bluebird as mongoose Promise library as mpromise is depreceated

theflametrooper 8 years ago
parent
commit
6434b017bd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      backend/logic/db/index.js

+ 4 - 0
backend/logic/db/index.js

@@ -2,6 +2,10 @@
 
 const mongoose = require('mongoose');
 
+const bluebird = require('bluebird');
+
+mongoose.Promise = bluebird;
+
 let lib = {
 
 	connection: null,