mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-22 05:09:03 +00:00
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:
parent
feef65a165
commit
cc122f63b8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user