@ -2,10 +2,6 @@
var mubsub = require('mubsub-nbb');
var db = require('../mongo');
const connString = db.getConnectionString();
var client = mubsub(db.getConnectionString());
var client = mubsub(connString);
client.on('error', function (err) {
console.error('mongo pubsub error ' + connString, err);
});
module.exports = client.channel('pubsub');
@ -35,7 +35,7 @@ nconf.defaults({
if (!nconf.get('isCluster')) {
nconf.set('isPrimary', 'true');
nconf.set('isCluster', 'true');
nconf.set('isCluster', 'false');
}
var dbType = nconf.get('database');