From 353b899c3f6c492d9f0f6cea480bc2c41d73b728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Sat, 3 Oct 2026 17:14:20 +0200 Subject: [PATCH] refactor(bo): change dispatch method for employee sync job Updated the dispatch method to use dispatchAfterResponse for the employee sync job. --- app/Http/Controllers/Bo/EmployeesController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/Bo/EmployeesController.php b/app/Http/Controllers/Bo/EmployeesController.php index d8d33be5..740096dc 100644 --- a/app/Http/Controllers/Bo/EmployeesController.php +++ b/app/Http/Controllers/Bo/EmployeesController.php @@ -33,8 +33,7 @@ class EmployeesController extends Controller return to_route('bo.dashboard'); } - // $this->dispatcher->dispatchAfterResponse($syncJob); - $this->dispatcher->dispatch($syncJob); + $this->dispatcher->dispatchAfterResponse($syncJob); $this->flashMessageService->success(__('The employee sync job has been dispatched')); return to_route('bo.dashboard');