mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
notify docupdate if the flush is from a shutdown
This commit is contained in:
parent
0708f717fd
commit
20d442120f
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ module.exports = DocumentUpdaterManager =
|
|||
logger.log project_id:project_id, "deleting project from document updater"
|
||||
timer = new metrics.Timer("delete.mongo.project")
|
||||
# flush the project in the background when all users have left
|
||||
url = "#{settings.apis.documentupdater.url}/project/#{project_id}?background=true"
|
||||
url = "#{settings.apis.documentupdater.url}/project/#{project_id}?background=true" +
|
||||
(if settings.shutDownInProgress then "&shutdown=true" else "")
|
||||
request.del url, (err, res, body)->
|
||||
timer.done()
|
||||
if err?
|
||||
|
|
Loading…
Reference in a new issue