Skip to content

Commit 68f7200

Browse files
committed
(TP-77) fix: change update to updateUserById signature
1 parent f507768 commit 68f7200

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rentplace/src/main/java/kattsyn/dev/rentplace/controllers/UserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public ResponseEntity<UserDTO> createUser(@ModelAttribute @Valid UserCreateEditD
121121
@PreAuthorize("hasAuthority('ROLE_ADMIN') or hasAuthority('ROLE_USER')" )
122122
@SecurityRequirement(name = "JWT")
123123
@PatchMapping(path = "/{id}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
124-
public ResponseEntity<UserDTO> updateUser(
124+
public ResponseEntity<UserDTO> updateUserById(
125125
@PathVariable
126126
@Parameter(description = "id пользователя", example = "1") long id,
127127
@ModelAttribute @Valid UserCreateEditDTO userCreateEditDTO,

0 commit comments

Comments
 (0)