Browse Source

Added bluebird as mongoose Promise library as mpromise is depreceated

theflametrooper 8 năm trước cách đây
mục cha
commit
6434b017bd
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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,