Skip to content

Commit

Permalink
♻️ lets try a different way of dispatching
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Apr 6, 2021
1 parent b6265f3 commit 2243c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function index(): Response|JsonResponse
*/
public function store(Request $request): Response|JsonResponse
{
dispatch(new BuildImage(new ImageDto($request->all())));
BuildImage::dispatch(new ImageDto($request->all()));
return $this->success('dispatched');
}

Expand Down

0 comments on commit 2243c2f

Please sign in to comment.