switch to @nodebb/socket.io-adapter-mongo
This commit is contained in:
Barış Soner Uşaklı
2020-06-14 22:49:59 -04:00
parent 18d892398f
commit 7ed1a0140a
2 changed files with 2 additions and 2 deletions

View File

@@ -78,6 +78,7 @@
"morgan": "^1.10.0",
"mousetrap": "^1.6.5",
"@nodebb/mubsub": "^1.6.0",
"@nodebb/socket.io-adapter-mongo": "3.0.0",
"nconf": "^0.10.0",
"nodebb-plugin-composer-default": "6.3.43",
"nodebb-plugin-dbsearch": "4.0.7",
@@ -114,7 +115,6 @@
"sitemap": "^6.1.0",
"socket.io": "2.3.0",
"socket.io-adapter-cluster": "^1.0.1",
"socket.io-adapter-mongo": "^2.0.5",
"socket.io-adapter-postgres": "^1.2.1",
"socket.io-client": "2.3.0",
"socket.io-redis": "5.3.0",

View File

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