From 7a0e8c434a7ac5fb7ac4991d37fac8c5a5b86cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl?= <15849319+abcdan@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:43:44 +0200 Subject: [PATCH] fix --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index b7d6ba4..a10ed95 100644 --- a/index.js +++ b/index.js @@ -43,10 +43,10 @@ app.get("/", async (req, res) => { throw new Error("Invalid STORAGE_MODE"); } - const { uploads, size } = await storageEngine.gatherStatistics(); + const { totalUploads, totalSize } = await storageEngine.gatherStatistics(); res.render("index", { - totalUploads: uploads, - totalSize: size.toFixed(2), + totalUploads: totalUploads, + totalSize: totalSize, hosterEmail: hosterEmail, }); });