- PUSH Notification

This commit is contained in:
Paolo Arena
2019-02-05 03:40:22 +01:00
parent 1f88ee3cf2
commit 8e5e7addb7
14 changed files with 677 additions and 241 deletions

View File

@@ -1,6 +1,8 @@
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.level = "F";
mongoose.connect(process.env.MONGODB_URI, { useMongoClient: true, promiseLibrary: require('bluebird') })
.then(() =>
console.log('connection succesful ' + process.env.MONGODB_URI + ' db: ' + process.env.DATABASE)