From 349a8b65de6dc45d9d1b90f8c11978be1f695fbf Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 30 Mar 2021 17:27:04 +0200 Subject: [PATCH 1/2] Fix file uploading not working (ttl doesn't exist anymore) --- src/controllers/FileController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/FileController.ts b/src/controllers/FileController.ts index a8327b1..acac5a5 100644 --- a/src/controllers/FileController.ts +++ b/src/controllers/FileController.ts @@ -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(); From 459c83b47d29b1094059a7e48d784fb46297ff5b Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 30 Mar 2021 17:27:19 +0200 Subject: [PATCH 2/2] Version 1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f419aa..cf069c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ily.li", - "version": "1.0.1", + "version": "1.0.2", "description": "Self-hosted file pusher", "repository": "https://eternae.ink/arisu/ily.li", "author": "Alice Gaudon ",