diff --git a/main-server/src/main/java/com/sickgyun/server/user/domain/User.java b/main-server/src/main/java/com/sickgyun/server/user/domain/User.java index bba201f..05ca419 100644 --- a/main-server/src/main/java/com/sickgyun/server/user/domain/User.java +++ b/main-server/src/main/java/com/sickgyun/server/user/domain/User.java @@ -49,7 +49,7 @@ public class User { private Profile profile; public User(String name, String email) { - this.name = name; + this.name = delete24InName(name); this.email = email; this.role = Role.USER; @@ -62,10 +62,8 @@ public User(String name, String email) { } } - public User(String name, String email, Long cardinal) { - this.name = name; - this.email = email; - this.cardinal = cardinal; + private String delete24InName(String name) { + return name.replace("24", ""); } public void updateProfile(Profile profile) { @@ -77,7 +75,7 @@ public void updateContact(Contact contact) { } public void update(User user) { - this.email = user.getEmail(); this.name = user.getName(); + this.email = user.getEmail(); } }