Fix file uploading not working (ttl doesn't exist anymore)

This commit is contained in:
Alice Gaudon 2021-03-30 17:27:04 +02:00
parent 8555a35970
commit 349a8b65de

View File

@ -76,7 +76,7 @@ export default class FileController extends Controller {
storage_type: 'local',
storage_path: 'storage/uploads/' + slug,
size: upload.size,
ttl: ttl,
expires_at: ttl <= 0 ? null : new Date(Date.now() + ttl * 1000),
});
await file.save();