fullpwerr commited on
Commit
1a5e3b5
·
1 Parent(s): 5fdcbed

update CRUD

Browse files
Files changed (1) hide show
  1. app.js +1 -1
app.js CHANGED
@@ -80,7 +80,7 @@ app.post("/upload", upload.single("file"), (req, res) => {
80
  file_type: req.file.mimetype,
81
  uploadTime: Date.now(),
82
  file_url: `${req.protocol}://${req.get("host")}/files/${filePath}`,
83
- expires_in: fileData[filename] ? formatRemainingTime(fileData[filename].expiredAt) : "Unknown"
84
  // Format sesuai sisa waktu
85
  });
86
  });
 
80
  file_type: req.file.mimetype,
81
  uploadTime: Date.now(),
82
  file_url: `${req.protocol}://${req.get("host")}/files/${filePath}`,
83
+ expires_in: fileData[filePath] ? formatRemainingTime(fileData[filePath].expiredAt) : "Unknown"
84
  // Format sesuai sisa waktu
85
  });
86
  });