diff --git a/server/server.js b/server/server.js index a73b596f..68caa843 100644 --- a/server/server.js +++ b/server/server.js @@ -142,7 +142,7 @@ app.get('/download/:id', async (req, res) => { try { const filename = await storage.filename(id); const contentLength = await storage.length(id); - const timeToExpiry = storage.ttl(id); + const timeToExpiry = await storage.ttl(id); res.render('download', { filename: decodeURIComponent(filename), filesize: bytes(contentLength),