save domain along with file

pull/22/head
tycrek 3 years ago
parent b68cf5869a
commit 68a1edbbfe
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -38,6 +38,9 @@ router.post('/', (req, res) => {
const trueDomain = getTrueDomain(req.headers['x-ass-domain']); const trueDomain = getTrueDomain(req.headers['x-ass-domain']);
const generator = req.headers['x-ass-access'] || resourceIdType; const generator = req.headers['x-ass-access'] || resourceIdType;
// Save domain with file
req.file.domain = `${getTrueHttp()}${trueDomain}`;
// Get the uploaded time in milliseconds // Get the uploaded time in milliseconds
req.file.timestamp = DateTime.now().toMillis(); req.file.timestamp = DateTime.now().toMillis();

Loading…
Cancel
Save