find($this->scheduleId); if (! $schedule) { return; } // Só envia a notificação se o agendamento ainda estiver pago. if ($schedule->status !== 'paid') { return; } app(ScheduleService::class) ->sendScheduleStartingSoonPushes($schedule); } catch (\Throwable $e) { Log::error( 'Erro ao enviar push de agendamento próximo.', [ 'schedule_id' => $this->scheduleId, 'error' => $e->getMessage(), ] ); } } }