Skip to content

Commit 6676057

Browse files
authored
Merge pull request #252 from ploi/add-tries-on-notifications
Add tries to notifications
2 parents 622a3b7 + b99a6cc commit 6676057

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

app/Notifications/CommentHasReplyNotification.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class CommentHasReplyNotification extends Notification implements ShouldQueue
1313
{
1414
use Queueable;
1515

16+
public $tries = 5;
17+
18+
public $backoff = 10;
19+
1620
public function __construct(
1721
public readonly Comment $comment
1822
) {

app/Notifications/Item/ItemHasNewCommentNotification.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class ItemHasNewCommentNotification extends Notification implements ShouldQueue
1414
{
1515
use Queueable;
1616

17+
public $tries = 5;
18+
19+
public $backoff = 10;
20+
1721
public function __construct(
1822
public readonly Comment $comment,
1923
public readonly User $user

app/Notifications/Item/ItemUpdatedNotification.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class ItemUpdatedNotification extends Notification implements ShouldQueue
1414
{
1515
use Queueable;
1616

17+
public $tries = 5;
18+
19+
public $backoff = 10;
20+
1721
public function __construct(
1822
public readonly Item $item
1923
) {

app/Notifications/MentionNotification.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class MentionNotification extends Notification implements ShouldQueue
1313
{
1414
use Queueable;
1515

16+
public $tries = 5;
17+
18+
public $backoff = 10;
19+
1620
public function __construct(
1721
public readonly Comment $comment
1822
) {

config/mail.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858

5959
'postmark' => [
6060
'transport' => 'postmark',
61-
// 'client' => [
62-
// 'timeout' => 5,
63-
// ],
61+
'client' => [
62+
'http_version' => '1.1',
63+
]
6464
],
6565

6666
'sendmail' => [

0 commit comments

Comments
 (0)