mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
805517e728
commit
d0b7cae021
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue