Merge pull request #9141 from overleaf/bg-disable-track-changes-2

disable flush to track-changes in docupdater

GitOrigin-RevId: d5ff12d4755783af0a3f71939c07994d43b9d740
This commit is contained in:
Brian Gough 2022-08-05 11:08:04 +01:00 committed by Copybot
parent 982897dcb9
commit 805ac00090

View file

@ -30,6 +30,10 @@ module.exports = HistoryManager = {
) )
return return
} }
if (Settings.disableTrackChanges) {
logger.debug({ doc_id }, 'track changes is disabled, so not flushing')
return
}
return RedisManager.getHistoryType( return RedisManager.getHistoryType(
doc_id, doc_id,
function (err, projectHistoryType) { function (err, projectHistoryType) {