改进 通知
This commit is contained in:
parent
3b73ee2efe
commit
849e8ed6bc
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Jobs\Module\WorkOrder;
|
namespace App\Jobs\Module\WorkOrder;
|
||||||
|
|
||||||
use App\Events\UserEvent;
|
use App\Events\Users;
|
||||||
use App\Models\WorkOrder\WorkOrder as WorkOrderModel;
|
use App\Models\WorkOrder\WorkOrder as WorkOrderModel;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
@ -57,9 +57,9 @@ public function handle(): void
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ($this->type == 'delete') {
|
if ($this->type == 'delete') {
|
||||||
broadcast(new UserEvent($this->workOrder->user_id, 'work-order.deleted', $this->workOrder));
|
broadcast(new Users($this->workOrder->user, 'work-order.deleted', $this->workOrder));
|
||||||
} else {
|
} else {
|
||||||
broadcast(new UserEvent($this->workOrder->user_id, 'work-order.updated', $this->workOrder));
|
broadcast(new Users($this->workOrder->user, 'work-order.updated', $this->workOrder));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user