Ver Fonte

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

[document-updater] fix check for missing pathname

GitOrigin-RevId: 81ebca469c820ffb197020d29f6734821c270e96
Brian Gough há 4 anos atrás
pai
commit
d0b7cae021
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      services/document-updater/app/js/RedisManager.js

+ 1 - 1
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',