mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
possible fix for pubsub
This commit is contained in:
@@ -32,9 +32,9 @@ function get() {
|
||||
pubsub = new EventEmitter();
|
||||
pubsub.publish = pubsub.emit.bind(pubsub);
|
||||
} else if (nconf.get('redis')) {
|
||||
pubsub = require('./database/redis').pubsub;
|
||||
} else {
|
||||
pubsub = require('./database').pubsub;
|
||||
pubsub = require('./database/redis/pubsub');
|
||||
} else if (nconf.get('mongo')) {
|
||||
pubsub = require('./database/mongo/pubsub');
|
||||
}
|
||||
|
||||
if (!pubsub) {
|
||||
|
||||
Reference in New Issue
Block a user