From 134c2025d4f06e1ddd0e517aee4de439abe6d809 Mon Sep 17 00:00:00 2001 From: HanakJakub Date: Sat, 30 Sep 2023 20:33:43 +0200 Subject: [PATCH] Update README.md (#12) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c27c825..bf0acef 100644 --- a/README.md +++ b/README.md @@ -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(); }