mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 20:11:26 +01:00
test mongodb again
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user