From 52cbf576130531b1c1ce2e816dfd7a4de4451fb2 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:10:45 +0700 Subject: [PATCH] fix: wrong method --- Services/client/src/stores/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 1b58a37..4921ece 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -317,7 +317,7 @@ const useStorage = defineStore('storageStore', () => { if (arr.length < 4) return // the system only allow file to live in level 3 and 4 loader.show() - await api.patch( + await api.delete( constructUrl(arr.slice(0, -1), false) + `/file/${arr[arr.length - 1]}`, ) loader.hide()