File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
examples/todo-list/src/controllers Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ export class TodoListController {
95
95
} ,
96
96
} ,
97
97
} )
98
- obj : Partial < TodoList > ,
98
+ todoList : Partial < TodoList > ,
99
99
@param . query . object ( 'where' , getWhereSchemaFor ( TodoList ) )
100
100
where ?: Where < TodoList > ,
101
101
) : Promise < Count > {
102
- return await this . todoListRepository . updateAll ( obj , where ) ;
102
+ return await this . todoListRepository . updateAll ( todoList , where ) ;
103
103
}
104
104
105
105
@get ( '/todo-lists/{id}' , {
@@ -138,9 +138,9 @@ export class TodoListController {
138
138
} ,
139
139
} ,
140
140
} )
141
- obj : Partial < TodoList > ,
141
+ todoList : Partial < TodoList > ,
142
142
) : Promise < void > {
143
- await this . todoListRepository . updateById ( id , obj ) ;
143
+ await this . todoListRepository . updateById ( id , todoList ) ;
144
144
}
145
145
146
146
@del ( '/todo-lists/{id}' , {
Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ export class TodoController {
101
101
@requestBody ( {
102
102
content : {
103
103
'application/json' : {
104
- schema : getModelSchemaRef ( TodoList , { partial : true } ) ,
104
+ schema : getModelSchemaRef ( Todo , { partial : true } ) ,
105
105
} ,
106
106
} ,
107
107
} )
108
- todo : Partial < TodoList > ,
108
+ todo : Partial < Todo > ,
109
109
) : Promise < void > {
110
110
await this . todoRepo . updateById ( id , todo ) ;
111
111
}
You can’t perform that action at this time.
0 commit comments