Skip to content

Commit eb09a44

Browse files
hosiduyraymondfeng
authored andcommitted
docs: fix controller.md to use @RequestBody()
Error on build: Property 'body' does not exist on type 'typeof param' Change from @pram.body() to @RequestBody()
1 parent 33f08d9 commit eb09a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/example-getting-started/docs/controller.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class TodoController {
135135
@patch('/todo/{id}')
136136
async updateTodo(
137137
@param.path.number('id') id: number,
138-
@param.body() todo: Todo): Promise<boolean> {
138+
@requestBody() todo: Todo): Promise<boolean> {
139139
return await this.todoRepo.updateById(id, todo);
140140
}
141141

0 commit comments

Comments
 (0)