diff --git a/app/Controllers/ClaimController.php b/app/Controllers/ClaimController.php index c6005ed..dbc3af9 100644 --- a/app/Controllers/ClaimController.php +++ b/app/Controllers/ClaimController.php @@ -329,12 +329,12 @@ class ClaimController extends ResourceController $updatedBy = $reqData['updated_by'] ?? $reqData['created_by'] ?? null; - // Soft-delete only the file ids sent in remove_file_id. + // Soft-delete only the file ids sent in remove_file_ids. $deletedFileIds = []; - if (!empty($reqData['remove_file_id'])) { + if (!empty($reqData['remove_file_ids'])) { $deletedFileIds = $this->softDeleteClaimFilesByIds( (int) $claimId, - $reqData['remove_file_id'], + $reqData['remove_file_ids'], $updatedBy ); } @@ -550,7 +550,7 @@ class ClaimController extends ResourceController /** * Soft-delete active claim files by the given ids only. - * Expects remove_file_id as an array, e.g. [5, 7]. + * Expects remove_file_ids as an array, e.g. [5, 7]. * Also accepts JSON string "[5,7]" or comma-separated "5,7" from form-data. * * @return int[] Soft-deleted file ids