Skip to content

Commit

Permalink
fix delete study remaining documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Aug 25, 2024
1 parent eda7e49 commit 99f3458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 99f3458

Please sign in to comment.