test mongodb again

This commit is contained in:
Barış Soner Uşaklı
2018-10-16 18:44:03 -04:00
parent 8f7482955d
commit 2d8d234c57
4 changed files with 6 additions and 7 deletions

View File

@@ -1,8 +1,10 @@
'use strict';
var mubsub = require('mubsub-nbb');
var db = require('../mongo');
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
client.on('error', function (err) {
console.error('mongo pubsub error', err);
});
module.exports = client.channel('pubsub');