From 7ed1a0140aba3a1f80fe242fa5ae2e360cef009d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 14 Jun 2020 22:49:59 -0400 Subject: [PATCH] fix: #8401, #8237 switch to @nodebb/socket.io-adapter-mongo --- install/package.json | 2 +- src/database/mongo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/package.json b/install/package.json index 9bbadb74e5..6afe20ed50 100644 --- a/install/package.json +++ b/install/package.json @@ -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", diff --git a/src/database/mongo.js b/src/database/mongo.js index b5ac5019ce..d6ec3ccf8a 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -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()); };