Compare commits
2 Commits
eae7e76ea4
...
efa6410cd9
| Author | SHA1 | Date | |
|---|---|---|---|
| efa6410cd9 | |||
|
|
085a4f72fa |
@@ -17,9 +17,6 @@ class EditRfqTransporterBid extends EditRecord
|
||||
|
||||
protected function afterSave(): void
|
||||
{
|
||||
|
||||
|
||||
|
||||
if (! $this->record->wasChanged('total_freight_charge')) {
|
||||
return;
|
||||
}
|
||||
@@ -56,12 +53,23 @@ class EditRfqTransporterBid extends EditRecord
|
||||
]);
|
||||
|
||||
foreach ($recipients as $user) {
|
||||
$user->notify(
|
||||
new PushAlertNotification(
|
||||
'Rank Updated',
|
||||
$body
|
||||
)
|
||||
);
|
||||
// $user->notify(
|
||||
// new PushAlertNotification(
|
||||
// 'Rank Updated',
|
||||
// $body
|
||||
// )
|
||||
// );
|
||||
|
||||
$subscriptions = $user->pushSubscriptions;
|
||||
|
||||
foreach ($subscriptions as $sub) {
|
||||
$sub->sendPushNotification(
|
||||
new PushAlertNotification(
|
||||
'Rank Updated',
|
||||
$body
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user