mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
check timestamps array length
This commit is contained in:
parent
0f0682df43
commit
7561e05660
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = DeleteQueueManager =
|
|||
flushProjectIfNotModified = (project_id, flushTimestamp, cb) ->
|
||||
ProjectManager.getProjectDocsTimestamps project_id, (err, timestamps) ->
|
||||
return callback(err) if err?
|
||||
if !timestamps?
|
||||
if timestamps.length == 0
|
||||
logger.log {project_id}, "skipping flush of queued project - no timestamps"
|
||||
return cb()
|
||||
# are any of the timestamps newer than the time the project was flushed?
|
||||
|
|
Loading…
Reference in a new issue