chnaged logic in edit transporter bid page #139
@@ -17,9 +17,6 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
|
|
||||||
protected function afterSave(): void
|
protected function afterSave(): void
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (! $this->record->wasChanged('total_freight_charge')) {
|
if (! $this->record->wasChanged('total_freight_charge')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -56,12 +53,23 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($recipients as $user) {
|
foreach ($recipients as $user) {
|
||||||
$user->notify(
|
// $user->notify(
|
||||||
new PushAlertNotification(
|
// new PushAlertNotification(
|
||||||
'Rank Updated',
|
// 'Rank Updated',
|
||||||
$body
|
// $body
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
|
$subscriptions = $user->pushSubscriptions;
|
||||||
|
|
||||||
|
foreach ($subscriptions as $sub) {
|
||||||
|
$sub->sendPushNotification(
|
||||||
|
new PushAlertNotification(
|
||||||
|
'Rank Updated',
|
||||||
|
$body
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user