mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[misc] wait for refreshing of expiry timeout before triggering cleanup
This commit is contained in:
@@ -412,8 +412,9 @@ if (!module.parent) {
|
||||
module.exports = app
|
||||
|
||||
setInterval(() => {
|
||||
ProjectPersistenceManager.refreshExpiryTimeout()
|
||||
ProjectPersistenceManager.clearExpiredProjects()
|
||||
ProjectPersistenceManager.refreshExpiryTimeout(() => {
|
||||
ProjectPersistenceManager.clearExpiredProjects()
|
||||
})
|
||||
}, tenMinutes)
|
||||
|
||||
function __guard__(value, transform) {
|
||||
|
||||
Reference in New Issue
Block a user