mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-22 13:19:05 +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
|
return
|
||||||
|
|
||||||
temporaryUploadsInProgress = true
|
temporaryUploadsInProgress = true
|
||||||
|
try {
|
||||||
const result = await utils.bulkDeleteExpired()
|
const result = await utils.bulkDeleteExpired()
|
||||||
|
|
||||||
if (result.expired.length) {
|
if (result.expired.length) {
|
||||||
@ -269,6 +270,10 @@ safe.use('/api', api)
|
|||||||
|
|
||||||
logger.log(logMessage)
|
logger.log(logMessage)
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
// Simply print-out errors, then continue
|
||||||
|
logger.error(error)
|
||||||
|
}
|
||||||
|
|
||||||
temporaryUploadsInProgress = false
|
temporaryUploadsInProgress = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user