[misc] wait for refreshing of expiry timeout before triggering cleanup

This commit is contained in:
Jakob Ackermann 2021-06-01 15:51:09 +01:00
parent 294088fb27
commit 1127bf640e

View file

@ -412,8 +412,9 @@ if (!module.parent) {
module.exports = app
setInterval(() => {
ProjectPersistenceManager.refreshExpiryTimeout()
ProjectPersistenceManager.clearExpiredProjects()
ProjectPersistenceManager.refreshExpiryTimeout(() => {
ProjectPersistenceManager.clearExpiredProjects()
})
}, tenMinutes)
function __guard__(value, transform) {