mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
Merge branch 'main' into accounts
This commit is contained in:
commit
2a729483a1
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue