From d0b7cae02102a9c32d8c71e8f70c6d85c986ba1a Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 30 Nov 2021 15:06:42 +0000 Subject: [PATCH] Merge pull request #5963 from overleaf/bg-fix-missing-pathname-check [document-updater] fix check for missing pathname GitOrigin-RevId: 81ebca469c820ffb197020d29f6734821c270e96 --- services/document-updater/app/js/RedisManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/js/RedisManager.js b/services/document-updater/app/js/RedisManager.js index a5bab3c98b..b14af20fb0 100644 --- a/services/document-updater/app/js/RedisManager.js +++ b/services/document-updater/app/js/RedisManager.js @@ -248,7 +248,7 @@ module.exports = RedisManager = { projectHistoryId = parseInt(projectHistoryId) } - if (!pathname) { + if (docLines && version && !pathname) { metrics.inc('pathname', 1, { path: 'RedisManager.getDoc', status: pathname === '' ? 'zero-length' : 'undefined',