Merge branch 'main' into accounts

This commit is contained in:
Daniël 2024-06-09 15:18:24 +02:00
commit 2a729483a1

View file

@ -32,7 +32,8 @@ app.get("/", async (req, res) => {
? require("./engines/s3.engine") ? require("./engines/s3.engine")
: require("./engines/local.engine"); : require("./engines/local.engine");
const { uploads, size } = await engine.gatherStatistics(); const { gatherStatistics } = engine;
const { uploads, size } = await gatherStatistics();
res.render("index", { res.render("index", {
totalUploads: uploads, totalUploads: uploads,
totalSize: size.toFixed(2), totalSize: size.toFixed(2),