Skip to content

Commit 8f04b6a

Browse files
fix(sample): use hero by id for find one argument (grpc)
1 parent f7d089f commit 8f04b6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample/04-grpc/src/hero/hero.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { HeroById } from './interfaces/hero-by-id.interface';
66
import { Hero } from './interfaces/hero.interface';
77

88
interface HeroService {
9-
findOne(data: { id: number }): Observable<any>;
9+
findOne(data: HeroById): Observable<any>;
1010
}
1111

1212
@Controller()

0 commit comments

Comments
 (0)