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:
parent
8cbbefb20b
commit
353b899c3f
1 changed files with 1 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue