From 72dac30f85ed40c3f310a47ad72e67d66fccc5c6 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 19 Oct 2025 22:42:07 +0100 Subject: [PATCH] docs(cqrs): fix property typo in QueryHandler example --- content/recipes/cqrs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/recipes/cqrs.md b/content/recipes/cqrs.md index d67e5c445f..35460161fc 100644 --- a/content/recipes/cqrs.md +++ b/content/recipes/cqrs.md @@ -185,7 +185,7 @@ export class GetHeroHandler implements IQueryHandler { constructor(private repository: HeroesRepository) {} async execute(query: GetHeroQuery) { - return this.repository.findOneById(query.hero); + return this.repository.findOneById(query.heroId); } } @@switch