fix: temporary uploads stats counter

This commit is contained in:
Bobby 2022-10-06 05:12:46 +07:00
parent 3b2808f0fd
commit c4caee42ca
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -198,7 +198,7 @@ self.getUploadsStats = async db => {
} }
if (upload.expirydate !== null) { if (upload.expirydate !== null) {
stats.Temporary++ stats.Temporary.value++
} }
stats['Size in DB'].value += parseInt(upload.size) stats['Size in DB'].value += parseInt(upload.size)