From c6a7fd405b06c10b69c4346a33a93a3bf78d7725 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 30 Apr 2024 15:00:57 +0200 Subject: [PATCH 1/3] Update version numbers to 4.0.0-beta.272 --- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/sentry.php b/config/sentry.php index 15711e651..75705bd93 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.271', + 'release' => '4.0.0-beta.272', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index ebbaefd2a..cf5c01c23 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ Date: Tue, 30 Apr 2024 15:06:49 +0200 Subject: [PATCH 2/3] Add backoff property to SendMessageToDiscordJob.php --- app/Jobs/SendMessageToDiscordJob.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Jobs/SendMessageToDiscordJob.php b/app/Jobs/SendMessageToDiscordJob.php index b9255baaa..31f54f6d6 100644 --- a/app/Jobs/SendMessageToDiscordJob.php +++ b/app/Jobs/SendMessageToDiscordJob.php @@ -20,11 +20,12 @@ class SendMessageToDiscordJob implements ShouldQueue, ShouldBeEncrypted * @var int */ public $tries = 5; + public $backoff = 10; /** * The maximum number of unhandled exceptions to allow before failing. */ - public int $maxExceptions = 3; + public int $maxExceptions = 5; public function __construct( public string $text, From 17e81ab6bddab4bd6dd3df02655b79ce030a8c75 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 30 Apr 2024 15:06:53 +0200 Subject: [PATCH 3/3] Refactor setNotificationChannels method in DeploymentSuccess.php --- app/Notifications/Application/DeploymentSuccess.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index 322df5cec..816dac19d 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -43,15 +43,8 @@ class DeploymentSuccess extends Notification implements ShouldQueue public function via(object $notifiable): array { - $channels = setNotificationChannels($notifiable, 'deployments'); - if (isCloud()) { - $channels = array_filter($channels, function ($channel) { - return $channel !== 'App\Notifications\Channels\EmailChannel'; - }); - } - return $channels; + return setNotificationChannels($notifiable, 'deployments'); } - public function toMail(): MailMessage { $mail = new MailMessage();