We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 470d262 + 72dac30 commit 03323c5Copy full SHA for 03323c5
content/recipes/cqrs.md
@@ -185,7 +185,7 @@ export class GetHeroHandler implements IQueryHandler<GetHeroQuery> {
185
constructor(private repository: HeroesRepository) {}
186
187
async execute(query: GetHeroQuery) {
188
- return this.repository.findOneById(query.hero);
+ return this.repository.findOneById(query.heroId);
189
}
190
191
@@switch
0 commit comments