Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Feb 14, 2024
1 parent 710b945 commit c54f9f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.example.daemawiki.domain.user.repository.UserRepository;
import com.example.daemawiki.global.exception.H409.EmailAlreadyExistsException;
import com.example.daemawiki.global.exception.H403.UnVerifiedEmailException;
import com.example.daemawiki.infra.s3.model.DefaultProfile;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -40,6 +41,7 @@ public Mono<Void> execute(SignupRequest request) {
.nickname(request.nickname())
.email(request.email())
.password(password)
.profile(DefaultProfile.DEFAULT_PROFILE)
.build())
.flatMap(userRepository::save);
}))).then();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.daemawiki.domain.user.model;

import com.example.daemawiki.infra.s3.model.DefaultProfile;
import com.example.daemawiki.infra.s3.model.FileResponse;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
Expand All @@ -24,14 +23,14 @@ public class User {
@JsonIgnore
private String password;

@Builder.Default
private FileResponse profile = DefaultProfile.DEFAULT_PROFILE;
private FileResponse profile;

@Builder
public User(String nickname, String email, String password) {
public User(String nickname, String email, String password, FileResponse profile) {
this.nickname = nickname;
this.email = email;
this.password = password;
this.profile = profile;
}

}

0 comments on commit c54f9f0

Please sign in to comment.