feat: pass connection options to socket.io-adapter-mongo

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 3dcf538773
commit 393f19b461

@ -168,7 +168,7 @@ mongoModule.close = function (callback) {
mongoModule.socketAdapter = function () {
const mongoAdapter = require('@nodebb/socket.io-adapter-mongo');
return mongoAdapter(connection.getConnectionString());
return mongoAdapter(connection.getConnectionString(), connection.getConnectionOptions());
};
require('./mongo/main')(mongoModule);

Loading…
Cancel
Save