From 3dd000116ec3d95725e41cff496494301edeed95 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:17:34 +0200 Subject: [PATCH] fix gather stats --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a88c779..e3e8926 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,8 @@ app.get("/", async (req, res) => { ? require("./engines/s3.engine") : require("./engines/local.engine"); - const { uploads, size } = await engine.gatherStatistics(); + const { gatherStatistics } = engine; + const { uploads, size } = await gatherStatistics(); res.render("index", { totalUploads: uploads, totalSize: size.toFixed(2),