Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Nov 18, 2024
1 parent 30714ab commit 2443ade
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Repositories/ConsultationUserTermRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public function getByCurrentUserTutor(): Collection
$user['categories'] = $term->consultationUser->user->categories->toArray();
$user['executed_status'] = $term->executed_status;
if ($userTerm) {
// @phpstan-ignore-next-line
$userTerm->executed_status = $term->executed_status === ConsultationTermStatusEnum::APPROVED ? $term->executed_status : $userTerm->executed_status;
$userTerm->users->push(new ConsultationUserResourceDto($user));
} else {
Expand Down

0 comments on commit 2443ade

Please sign in to comment.