Updated log message for expired uploads deletion

This commit is contained in:
Bobby Wibowo 2020-04-07 02:46:04 +07:00
parent 589bf00dd9
commit 2d1db2bd01
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -252,9 +252,9 @@ safe.use('/api', api)
const result = await utils.bulkDeleteExpired()
if (result.expired.length) {
let logMessage = `Deleted ${result.expired.length} expired upload(s)`
let logMessage = `Expired uploads: ${result.expired.length} deleted`
if (result.failed.length)
logMessage += ` but unable to delete ${result.failed.length}`
logMessage += `, ${result.failed.length} errored`
logger.log(logMessage)
}