Explorar o código

Added bluebird as mongoose Promise library as mpromise is depreceated

theflametrooper %!s(int64=8) %!d(string=hai) anos
pai
achega
6434b017bd
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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,