/
dimamir
/
coolify
Обзор
Документация
Войти
/
dimamir
/
coolify
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/Notifications/Channels/DiscordChannel.php
22 строки
540 B
Andras Bacsai
fix: make sure important jobs/actions are running on high prio queue
22 ноя 2024, 13:16
22 ноя 2024, 13:16
7dc65df
Код
Авторство
О чём код?
<?php namespace App\Notifications\Channels; use App\Jobs\SendMessageToDiscordJob; use Illuminate\Notifications\Notification; class DiscordChannel { /** * Send the given notification. */ public function send(SendsDiscord $notifiable, Notification $notification): void { $message = $notification->toDiscord(); $webhookUrl = $notifiable->routeNotificationForDiscord(); if (! $webhookUrl) { return; } SendMessageToDiscordJob::dispatch($message, $webhookUrl); } }