diff --git a/app/Infrastructure/Jobs/SendVacationRequestDaysToGoogleCalendar.php b/app/Infrastructure/Jobs/SendVacationRequestDaysToGoogleCalendar.php index 7857fdc..e912d87 100644 --- a/app/Infrastructure/Jobs/SendVacationRequestDaysToGoogleCalendar.php +++ b/app/Infrastructure/Jobs/SendVacationRequestDaysToGoogleCalendar.php @@ -58,7 +58,7 @@ class SendVacationRequestDaysToGoogleCalendar implements ShouldQueue ]; foreach ($days as $day) { - if ($day->diffInDays($ranges[$index]["to"]) !== 1) { + if ($day->diffInDays($ranges[$index]["to"]) > 1) { $index++; $ranges[$index] = [