diff --git a/services/document-updater/app/js/HistoryRedisManager.js b/services/document-updater/app/js/HistoryRedisManager.js index 1a6bc25d3f..4756201471 100644 --- a/services/document-updater/app/js/HistoryRedisManager.js +++ b/services/document-updater/app/js/HistoryRedisManager.js @@ -12,9 +12,7 @@ */ let HistoryRedisManager const Settings = require('@overleaf/settings') -const rclient = require('@overleaf/redis-wrapper').createClient( - Settings.redis.history -) +const { rclient } = require('./RedisManager') // docsWithHistoryOps lives in main redis const Keys = Settings.redis.history.key_schema const logger = require('@overleaf/logger') diff --git a/services/document-updater/test/unit/js/HistoryRedisManager/HistoryRedisManagerTests.js b/services/document-updater/test/unit/js/HistoryRedisManager/HistoryRedisManagerTests.js index 942884ec58..009fdf50c3 100644 --- a/services/document-updater/test/unit/js/HistoryRedisManager/HistoryRedisManagerTests.js +++ b/services/document-updater/test/unit/js/HistoryRedisManager/HistoryRedisManagerTests.js @@ -25,7 +25,7 @@ describe('HistoryRedisManager', function () { this.rclient.multi = () => this.rclient this.HistoryRedisManager = SandboxedModule.require(modulePath, { requires: { - '@overleaf/redis-wrapper': { createClient: () => this.rclient }, + './RedisManager': { rclient: this.rclient }, '@overleaf/settings': { redis: { history: (this.settings = {