From 805ac0009083715bfd51d38cb2aae0708ce5c3e8 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 5 Aug 2022 11:08:04 +0100 Subject: [PATCH] Merge pull request #9141 from overleaf/bg-disable-track-changes-2 disable flush to track-changes in docupdater GitOrigin-RevId: d5ff12d4755783af0a3f71939c07994d43b9d740 --- services/document-updater/app/js/HistoryManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/document-updater/app/js/HistoryManager.js b/services/document-updater/app/js/HistoryManager.js index 3950afeca6..2199a12c10 100644 --- a/services/document-updater/app/js/HistoryManager.js +++ b/services/document-updater/app/js/HistoryManager.js @@ -30,6 +30,10 @@ module.exports = HistoryManager = { ) return } + if (Settings.disableTrackChanges) { + logger.debug({ doc_id }, 'track changes is disabled, so not flushing') + return + } return RedisManager.getHistoryType( doc_id, function (err, projectHistoryType) {