Skip to content

Commit

Permalink
Merge pull request #613 from AaronJackson/proxy-notifications-fix
Browse files Browse the repository at this point in the history
Add variables to anonymous function scope for Trustee proxy notifications to Slack
  • Loading branch information
dpslwk authored Nov 30, 2024
2 parents 0ddd854 + 8717f8c commit ef47000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ public function toSlack($notifiable)

return (new SlackMessage)
->to($notifiable->getSlackChannel())
->attachment(function ($attachment) {
$attachment->title($this->meeting->getTitle() . ': Proxy Cancelled')
->attachment(fn ($attachment) => $attachment->title($this->meeting->getTitle() . ': Proxy Cancelled')
->content($content)
->fallback($content)
->timestamp(Carbon::now());
});
->timestamp(Carbon::now())
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ public function toSlack($notifiable)

return (new SlackMessage)
->to($notifiable->getSlackChannel())
->attachment(function ($attachment) {
$attachment->title($meeting->getTitle() . ': Proxy Registered')
->attachment(fn ($attachment) => $attachment->title($meeting->getTitle() . ': Proxy Registered')
->content($content)
->fallback($content)
->timestamp(Carbon::now());
});
->timestamp(Carbon::now())
);
}
}

0 comments on commit ef47000

Please sign in to comment.