Skip to content

Commit

Permalink
Merge pull request #81 from EscolaLMS/feature/REK-38
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
daVitekPL authored Nov 12, 2024
2 parents 78294d0 + 11557b2 commit 773bbb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function requiredVariablesInSection(string $sectionKey): array

public static function variablesFromEvent(EventWrapper $event): array
{
$executedAt = $event->getConsultationAccessEnquiry()->consultationUser->executed_at;
$executedAt = $event->getConsultationAccessEnquiry()->consultationUserTerm ? $event->getConsultationAccessEnquiry()->consultationUserTerm->executed_at : $event->getConsultationAccessEnquiry()->consultationUser->executed_at;
if (!$executedAt instanceof Carbon) {
$executedAt = Carbon::make($executedAt);
}
Expand Down

0 comments on commit 773bbb9

Please sign in to comment.