]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/database.js
Server: reorganize express validators
[github/Chocobozzz/PeerTube.git] / server / initializers / database.js
index 4a19bc2302d609211adba372f2a88f5991c58267..8626895ee6fd4cd60d8bfac71065d900399f2c84 100644 (file)
@@ -23,6 +23,7 @@ const database = {
 }
 
 function connect () {
+  mongoose.Promise = global.Promise
   mongoose.connect('mongodb://' + host + ':' + port + '/' + dbname)
   mongoose.connection.on('error', function () {
     throw new Error('Mongodb connection error.')