#90 - wip
This commit is contained in:
		| @@ -21,7 +21,7 @@ class ClearVacationRequestDaysInGoogleCalendar implements ShouldQueue | ||||
|  | ||||
|     public function handle(): void | ||||
|     { | ||||
|         foreach ($this->vacationRequest->event_ids as $eventId) { | ||||
|         foreach ($this->vacationRequest->event_ids ?? [] as $eventId) { | ||||
|             $calendarEvent = Event::find($eventId); | ||||
|  | ||||
|             if ($calendarEvent->googleEvent->getStatus() !== "cancelled") { | ||||
|   | ||||
| @@ -32,7 +32,7 @@ class SendVacationRequestDaysToGoogleCalendar implements ShouldQueue | ||||
|         $ranges = $this->prepareRanges($days); | ||||
|  | ||||
|         foreach ($ranges as $range) { | ||||
|             $text = "{$this->vacationRequest->type->label()} - {$this->vacationRequest->user->fullName} [{$this->vacationRequest->name}]"; | ||||
|             $text = "{$this->vacationRequest->type->label()} - {$this->vacationRequest->user->profile->fullName} [{$this->vacationRequest->name}]"; | ||||
|  | ||||
|             $event = Event::create([ | ||||
|                 "name" => $text, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user