Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/main/java/io/autoinvestor/domain/model/UserId.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ public static UserId generate() {
public static UserId from(String id) {
return new UserId(id);
}

public static UserId empty() {
return new UserId("");
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/autoinvestor/domain/model/UserState.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public record UserState(
Date updatedAt
) {
public static UserState empty() {
return new UserState(UserId.empty(), FirstName.empty(), LastName.empty(), UserEmail.empty(), RiskLevel.empty(), new Date(), new Date());
return new UserState(UserId.generate(), FirstName.empty(), LastName.empty(), UserEmail.empty(), RiskLevel.empty(), new Date(), new Date());
}

public UserState withUserCreated(UserWasRegisteredEvent event) {
Expand Down