This commit is contained in:
Adrian Hopek 2022-03-18 07:14:41 +01:00
parent 47edca8348
commit 5988503624

View File

@ -58,7 +58,7 @@ class SendVacationRequestDaysToGoogleCalendar implements ShouldQueue
]; ];
foreach ($days as $day) { foreach ($days as $day) {
if ($day->diffInDays($ranges[$index]["to"]) !== 1) { if ($day->diffInDays($ranges[$index]["to"]) > 1) {
$index++; $index++;
$ranges[$index] = [ $ranges[$index] = [