浏览代码

Added bluebird as mongoose Promise library as mpromise is depreceated

theflametrooper 8 年之前
父节点
当前提交
6434b017bd
共有 1 个文件被更改,包括 4 次插入0 次删除
  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,