mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 06:09:20 +00:00
check for a valid counter value in event log
This commit is contained in:
parent
9b25374cd3
commit
57c5ec14bd
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ module.exports = EventLogger =
|
|||
return if typeof(message_id) isnt 'string'
|
||||
[key, count] = message_id.split("-", 2)
|
||||
count = parseInt(count, 10)
|
||||
if !count # ignore checks if counter is not present
|
||||
if !(count >= 0)# ignore checks if counter is not present
|
||||
return
|
||||
# store the last count in a hash for each host
|
||||
previous = EventLogger._storeEventCount(key, count)
|
||||
|
|
Loading…
Reference in a new issue