slack and google calendar feature flags

This commit is contained in:
Adrian Hopek
2022-06-13 13:36:11 +02:00
parent 31a6d287c8
commit 2c35653f8a
4 changed files with 18 additions and 4 deletions

View File

@@ -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")