* slack and google calendar feature flags * cs fix * update .env.example
This commit is contained in:
@@ -21,6 +21,10 @@ class ClearVacationRequestDaysInGoogleCalendar implements ShouldQueue
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
if (!config("services.google.calendar_enabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($this->vacationRequest->event_ids ?? [] as $eventId) {
|
||||
$calendarEvent = Event::find($eventId);
|
||||
|
||||
|
@@ -23,6 +23,10 @@ class SendVacationRequestDaysToGoogleCalendar implements ShouldQueue
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
if (!config("services.google.calendar_enabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
$days = $this->vacationRequest
|
||||
->vacations()
|
||||
->orderBy("date")
|
||||
|
Reference in New Issue
Block a user