chnaged logic in edit transporter bid page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 11m18s
Laravel Pint / pint (pull_request) Failing after 11m30s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 11m18s
Laravel Pint / pint (pull_request) Failing after 11m30s
This commit is contained in:
@@ -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,13 +53,24 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($recipients as $user) {
|
foreach ($recipients as $user) {
|
||||||
$user->notify(
|
// $user->notify(
|
||||||
|
// new PushAlertNotification(
|
||||||
|
// 'Rank Updated',
|
||||||
|
// $body
|
||||||
|
// )
|
||||||
|
// );
|
||||||
|
|
||||||
|
$subscriptions = $user->pushSubscriptions;
|
||||||
|
|
||||||
|
foreach ($subscriptions as $sub) {
|
||||||
|
$sub->sendPushNotification(
|
||||||
new PushAlertNotification(
|
new PushAlertNotification(
|
||||||
'Rank Updated',
|
'Rank Updated',
|
||||||
$body
|
$body
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user