From fd7a9bb86d75be8f2d2617481abd15b7a9a7cc32 Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 24 Apr 2026 14:17:14 +0800 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=20=D0=B4=D0=BE=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Bitrix/Http/Controllers/ContractUpdateController.php | 3 ++- app/Notifications/Deal/ContractUpdated.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Modules/Bitrix/Http/Controllers/ContractUpdateController.php b/app/Modules/Bitrix/Http/Controllers/ContractUpdateController.php index 73daa29..7810b3e 100644 --- a/app/Modules/Bitrix/Http/Controllers/ContractUpdateController.php +++ b/app/Modules/Bitrix/Http/Controllers/ContractUpdateController.php @@ -9,6 +9,7 @@ use Modules\Contracts\Models\Contract; use Modules\Contracts\Models\ContractStatus; use App\Notifications\ContractUpdated; +use App\Notifications\Deal\ContractUpdated as ContractUpdatedForDeal; class ContractUpdateController { public function __invoke(Deal $deal, Request $request) @@ -44,7 +45,7 @@ public function __invoke(Deal $deal, Request $request) $contract->add_info = $addInfo; $contract->save(); $agent = $deal->agent; - $deal->notify(new ContractUpdated($deal->contract)); + $deal->notify(new ContractUpdatedForDeal($deal->contract)); $agent->user->notify(new ContractUpdated($deal->contract)); return true; } diff --git a/app/Notifications/Deal/ContractUpdated.php b/app/Notifications/Deal/ContractUpdated.php index 567cdd0..fe76842 100644 --- a/app/Notifications/Deal/ContractUpdated.php +++ b/app/Notifications/Deal/ContractUpdated.php @@ -7,6 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; +use Modules\Contracts\Models\Contract; use App\Models\Deal\Deal; use App\Models\Deal\DealStatus; @@ -17,7 +18,7 @@ class ContractUpdated extends Notification /** * Create a new notification instance. */ - public function __construct() + public function __construct(Contract $contract) { }