refactor(bo): change dispatch method for employee sync job

Updated the dispatch method to use dispatchAfterResponse for the employee sync job.
This commit is contained in:
Jérémy Munsch 2026-10-03 17:14:20 +02:00
parent 8cbbefb20b
commit 353b899c3f
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91

View file

@ -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');