We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379111a commit 55812e5Copy full SHA for 55812e5
2 files changed
src/main/java/io/autoinvestor/application/UpdateUserUseCase/UpdateUserCommandHandler.java
@@ -37,9 +37,9 @@ public void handle (UpdateUserCommand command) {
37
38
UserDTO dto = new UserDTO(
39
user.getState().userId().value(),
40
- command.getState().userEmail().value,
41
- command.getState().firstName().value,
42
- command.getState().lastName().value,
+ user.getState().userEmail().value(),
+ user.getState().firstName().value(),
+ user.getState().lastName().value(),
43
command.riskLevel()
44
);
45
this.readModel.update(dto);
src/main/java/io/autoinvestor/ui/UpdateUserDTO.java
@@ -1,5 +1,5 @@
1
package io.autoinvestor.ui;
2
3
public record UpdateUserDTO(
4
- String riskLevel
+ int riskLevel
5
) {}
0 commit comments