fix: send discord/telegram notifications on high job queue
This commit is contained in:
@@ -17,6 +17,6 @@ class DiscordChannel
|
|||||||
if (! $webhookUrl) {
|
if (! $webhookUrl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dispatch(new SendMessageToDiscordJob($message, $webhookUrl));
|
dispatch(new SendMessageToDiscordJob($message, $webhookUrl))->onQueue('high');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user