fix: send discord/telegram notifications on high job queue
This commit is contained in:
parent
ae7d88df9f
commit
ebaf3c99dd
2 changed files with 2 additions and 2 deletions
|
|
@ -17,6 +17,6 @@ public function send(SendsDiscord $notifiable, Notification $notification): void
|
||||||
if (! $webhookUrl) {
|
if (! $webhookUrl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dispatch(new SendMessageToDiscordJob($message, $webhookUrl));
|
dispatch(new SendMessageToDiscordJob($message, $webhookUrl))->onQueue('high');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,6 @@ public function send($notifiable, $notification): void
|
||||||
if (! $telegramToken || ! $chatId || ! $message) {
|
if (! $telegramToken || ! $chatId || ! $message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dispatch(new SendMessageToTelegramJob($message, $buttons, $telegramToken, $chatId, $topicId));
|
dispatch(new SendMessageToTelegramJob($message, $buttons, $telegramToken, $chatId, $topicId))->onQueue('high');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue