Skip to content

Commit af08073

Browse files
committed
Fixes: #90 invalid method call in book handler
1 parent 823f194 commit af08073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/v5/tutorials/create-book-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ class BookHandler extends AbstractHandler implements RequestHandlerInterface
562562

563563
public function getCollection(ServerRequestInterface $request): ResponseInterface
564564
{
565-
$books = $this->bookService->getBooks($request->getQueryParams());
565+
$books = $this->bookService->getRepository()->getBooks($request->getQueryParams());
566566

567567
return $this->createResponse($request, $books);
568568
}

0 commit comments

Comments
 (0)