From 59885036249ac842e6a24f98d3f2d9aeec842dce Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Fri, 18 Mar 2022 07:14:41 +0100 Subject: [PATCH] #85 - fix --- .../Jobs/SendVacationRequestDaysToGoogleCalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = [