Skip to content

Commit 72dac30

Browse files
docs(cqrs): fix property typo in QueryHandler example
1 parent 470d262 commit 72dac30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/cqrs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class GetHeroHandler implements IQueryHandler<GetHeroQuery> {
185185
constructor(private repository: HeroesRepository) {}
186186

187187
async execute(query: GetHeroQuery) {
188-
return this.repository.findOneById(query.hero);
188+
return this.repository.findOneById(query.heroId);
189189
}
190190
}
191191
@@switch

0 commit comments

Comments
 (0)