diff --git a/index.js b/index.js index 7919448..639478d 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,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),