Merge pull request 'chnaged logic in edit transporter bid page' (#139) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #139
This commit was merged in pull request #139.
This commit is contained in:
@@ -17,9 +17,6 @@ class EditRfqTransporterBid extends EditRecord
|
||||
|
||||
protected function afterSave(): void
|
||||
{
|
||||
|
||||
|
||||
|
||||
if (! $this->record->wasChanged('total_freight_charge')) {
|
||||
return;
|
||||
}
|
||||
@@ -56,13 +53,24 @@ class EditRfqTransporterBid extends EditRecord
|
||||
]);
|
||||
|
||||
foreach ($recipients as $user) {
|
||||
$user->notify(
|
||||
// $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