From c4caee42ca5fb3b5ba6ee0c4da8d167a6846293f Mon Sep 17 00:00:00 2001 From: Bobby Date: Thu, 6 Oct 2022 05:12:46 +0700 Subject: [PATCH] fix: temporary uploads stats counter --- controllers/utils/StatsManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/utils/StatsManager.js b/controllers/utils/StatsManager.js index d6cabe7..440e558 100644 --- a/controllers/utils/StatsManager.js +++ b/controllers/utils/StatsManager.js @@ -198,7 +198,7 @@ self.getUploadsStats = async db => { } if (upload.expirydate !== null) { - stats.Temporary++ + stats.Temporary.value++ } stats['Size in DB'].value += parseInt(upload.size)