Updated lolisafe.js

https://blog.fiery.me/recent-disturbance-with-temporary-uploads
Fix for temporary uploads failing forever just due to errors not being
caugh.
This commit is contained in:
Bobby Wibowo 2020-05-27 01:18:25 +07:00
parent feef65a165
commit cc122f63b8
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -260,6 +260,7 @@ safe.use('/api', api)
return
temporaryUploadsInProgress = true
try {
const result = await utils.bulkDeleteExpired()
if (result.expired.length) {
@ -269,6 +270,10 @@ safe.use('/api', api)
logger.log(logMessage)
}
} catch (error) {
// Simply print-out errors, then continue
logger.error(error)
}
temporaryUploadsInProgress = false
}