From f262b0a665e371128e3d1a15b263d7d22444a849 Mon Sep 17 00:00:00 2001 From: hskwon Date: Mon, 15 Dec 2025 20:37:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8C=8C=EC=9D=BC=20=EA=B5=90=EC=B2=B4?= =?UTF-8?q?=20=EC=8B=9C=20=EA=B8=B0=EC=A1=B4=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=99=84=EC=A0=84=20=EC=82=AD=EC=A0=9C=20(soft=20delete=20?= =?UTF-8?q?=E2=86=92=20permanent=20delete)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/V1/ItemsFileController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/V1/ItemsFileController.php b/app/Http/Controllers/Api/V1/ItemsFileController.php index 4f66849..0527814 100644 --- a/app/Http/Controllers/Api/V1/ItemsFileController.php +++ b/app/Http/Controllers/Api/V1/ItemsFileController.php @@ -82,7 +82,7 @@ public function upload(int $id, ItemFileUploadRequest $request) $replaced = false; - // 기존 파일 교체 (file_id가 있는 경우) + // 기존 파일 교체 (file_id가 있는 경우) - 완전 삭제 if ($existingFileId) { $existingFile = File::query() ->where('tenant_id', $tenantId) @@ -92,7 +92,7 @@ public function upload(int $id, ItemFileUploadRequest $request) ->first(); if ($existingFile) { - $this->deleteFile($existingFile); + $existingFile->permanentDelete(); // 파일 교체 시 완전 삭제 $replaced = true; } }