v3 fix tests and use coroutines instead of regenerator

This commit is contained in:
Matteo Pagliazzi
2016-05-11 15:59:18 +02:00
parent 84b198f17f
commit 95aff08de3
24 changed files with 80 additions and 2702 deletions

View File

@@ -33,7 +33,7 @@ var MONGODB_NEW = nconf.get('MONGODB_NEW');
var taskDefaults = common.taskDefaults;
var MongoClient = MongoDB.MongoClient;
mongoose.Promise = Bluebird.all; // otherwise mongoose models won't work
mongoose.Promise = Bluebird; // otherwise mongoose models won't work
// Load new models
var NewUser = require('../../website/src/models/user').model;