Skip to content

Commit

Permalink
Fix username update
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 240d8aa9043d3f77b6d0f334f627d34ff58cf343
  • Loading branch information
pdesgarets authored and Gitlab-CI committed Dec 4, 2024
1 parent 23ac684 commit c7e7d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
public class UpdateUserDto {
@Email
private String email;
@Email
private String username;
@NotEmpty
private String name;
@NotEmpty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void applyChange(User user, UpdateUserDto updateUserDto) {
updateUserDto.getEmail()
)
.setUsername(
user.getUsername()
updateUserDto.getUsername()
)
.setLastname(
updateUserDto.getLastname()
Expand Down

0 comments on commit c7e7d2b

Please sign in to comment.