Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
finom authored May 24, 2024
1 parent 7064316 commit 96c3286
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ const UpdateUserQueryModel = z.object({
}).strict();

export default class UserController {
private static userService = UserService;

@put()
@vovkZod(UpdateUserModel, UpdateUserQueryModel)
static updateUser(
Expand All @@ -44,7 +42,7 @@ export default class UserController {
const { name, email } = await req.json();
const id = req.nextUrl.searchParams.get('id');

return this.userService.updateUser(id, { name, email });
return UserService.updateUser(id, { name, email });
}
}

Expand Down

0 comments on commit 96c3286

Please sign in to comment.