From 99f345886ac527c31f194e20b3a4dcd41076aa0d Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Mon, 26 Aug 2024 00:17:47 +0200 Subject: [PATCH] fix delete study remaining documentation --- GaelO2/app/Console/Commands/GaelODeleteRessourcesRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GaelO2/app/Console/Commands/GaelODeleteRessourcesRepository.php b/GaelO2/app/Console/Commands/GaelODeleteRessourcesRepository.php index 9223e8cd1..5fe5b97ef 100644 --- a/GaelO2/app/Console/Commands/GaelODeleteRessourcesRepository.php +++ b/GaelO2/app/Console/Commands/GaelODeleteRessourcesRepository.php @@ -62,7 +62,7 @@ public function __construct( public function deleteDocumentation(string $studyName) { - $documentations = $this->documentation->where('study_name', $studyName)->withTrashed(); + $documentations = $this->documentation->where('study_name', $studyName)->withTrashed()->get(); foreach($documentations as $documentation){ $this->frameworkInterface->deleteFile($documentation['path']); $documentation->forceDelete();