fix: send discord/telegram notifications on high job queue

This commit is contained in:
Andras Bacsai
2024-11-05 10:32:10 +01:00
parent ae7d88df9f
commit ebaf3c99dd
2 changed files with 2 additions and 2 deletions

View File

@@ -17,6 +17,6 @@ class DiscordChannel
if (! $webhookUrl) { if (! $webhookUrl) {
return; return;
} }
dispatch(new SendMessageToDiscordJob($message, $webhookUrl)); dispatch(new SendMessageToDiscordJob($message, $webhookUrl))->onQueue('high');
} }
} }

View File

@@ -41,6 +41,6 @@ class TelegramChannel
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');
} }
} }