Merge pull request #5963 from overleaf/bg-fix-missing-pathname-check

[document-updater] fix check for missing pathname

GitOrigin-RevId: 81ebca469c820ffb197020d29f6734821c270e96
This commit is contained in:
Brian Gough 2021-11-30 15:06:42 +00:00 committed by Copybot
parent 805517e728
commit d0b7cae021

View file

@ -248,7 +248,7 @@ module.exports = RedisManager = {
projectHistoryId = parseInt(projectHistoryId) projectHistoryId = parseInt(projectHistoryId)
} }
if (!pathname) { if (docLines && version && !pathname) {
metrics.inc('pathname', 1, { metrics.inc('pathname', 1, {
path: 'RedisManager.getDoc', path: 'RedisManager.getDoc',
status: pathname === '' ? 'zero-length' : 'undefined', status: pathname === '' ? 'zero-length' : 'undefined',