Skip to content

Commit

Permalink
Merge pull request #252 from ploi/add-tries-on-notifications
Browse files Browse the repository at this point in the history
Add tries to notifications
  • Loading branch information
Cannonb4ll authored Dec 13, 2023
2 parents 622a3b7 + b99a6cc commit 6676057
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/Notifications/CommentHasReplyNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class CommentHasReplyNotification extends Notification implements ShouldQueue
{
use Queueable;

public $tries = 5;

public $backoff = 10;

public function __construct(
public readonly Comment $comment
) {
Expand Down
4 changes: 4 additions & 0 deletions app/Notifications/Item/ItemHasNewCommentNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class ItemHasNewCommentNotification extends Notification implements ShouldQueue
{
use Queueable;

public $tries = 5;

public $backoff = 10;

public function __construct(
public readonly Comment $comment,
public readonly User $user
Expand Down
4 changes: 4 additions & 0 deletions app/Notifications/Item/ItemUpdatedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class ItemUpdatedNotification extends Notification implements ShouldQueue
{
use Queueable;

public $tries = 5;

public $backoff = 10;

public function __construct(
public readonly Item $item
) {
Expand Down
4 changes: 4 additions & 0 deletions app/Notifications/MentionNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class MentionNotification extends Notification implements ShouldQueue
{
use Queueable;

public $tries = 5;

public $backoff = 10;

public function __construct(
public readonly Comment $comment
) {
Expand Down
6 changes: 3 additions & 3 deletions config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@

'postmark' => [
'transport' => 'postmark',
// 'client' => [
// 'timeout' => 5,
// ],
'client' => [
'http_version' => '1.1',
]
],

'sendmail' => [
Expand Down

0 comments on commit 6676057

Please sign in to comment.