Skip to content

Commit

Permalink
Update README.md (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanakJakub authored Sep 30, 2023
1 parent cfd39df commit 134c202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ class UserController
{
public function index(UserFilters $filters, \Spiral\Cqrs\QueryBusInterface $bus)
{
return $bus->ack(
return $bus->ask(
new FindAllUsers($filters->roles())
)->toArray();
}

public function show(string $uuid, \Spiral\Cqrs\QueryBusInterface $bus)
{
return $bus->ack(
return $bus->ask(
new FindUserById(Uuid::fromString($uuid))
)->toArray();
}
Expand Down

0 comments on commit 134c202

Please sign in to comment.