mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] wait for refreshing of expiry timeout before triggering cleanup
This commit is contained in:
parent
294088fb27
commit
1127bf640e
1 changed files with 3 additions and 2 deletions
|
@ -412,8 +412,9 @@ if (!module.parent) {
|
|||
module.exports = app
|
||||
|
||||
setInterval(() => {
|
||||
ProjectPersistenceManager.refreshExpiryTimeout()
|
||||
ProjectPersistenceManager.clearExpiredProjects()
|
||||
ProjectPersistenceManager.refreshExpiryTimeout(() => {
|
||||
ProjectPersistenceManager.clearExpiredProjects()
|
||||
})
|
||||
}, tenMinutes)
|
||||
|
||||
function __guard__(value, transform) {
|
||||
|
|
Loading…
Reference in a new issue