Skip to content

Commit bc1aa3b

Browse files
Include notified flags to prevent duplicate slack notifications
1 parent 86b5a8b commit bc1aa3b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ProcessMaker/Notifications/TaskOverdueNotification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function via($notifiable)
5555
* Get the mail representation of the notification.
5656
*
5757
* @param mixed $notifiable
58-
* @return \Illuminate\Notifications\Messages\MailMessage
58+
* @return MailMessage
5959
*/
6060
public function toMail($notifiable)
6161
{
@@ -105,6 +105,8 @@ public function toArray($notifiable)
105105
'/tasks/%s/edit',
106106
$token->id
107107
),
108+
'due_notified' => $token->due_notified,
109+
'slack_notified' => $token->slack_notified ?? false,
108110
];
109111
}
110112

0 commit comments

Comments
 (0)