Skip to content

Commit

Permalink
Merge pull request #42 from wafflestudio/feat/socialLogin
Browse files Browse the repository at this point in the history
소셜로그인시 profile 만들게 추가
  • Loading branch information
jafacode authored Jan 20, 2025
2 parents 29c08b0 + 8d191ce commit a859c9a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ class UserService(
updatedAt = Instant.now(),
)
val savedUser = userRepository.save(newUser) // This should save as SocialUser

val profileEntity =
ProfileEntity(
user = newUser,
)

profileRepository.save(profileEntity)

User.fromEntity(savedUser) // Convert and return as User DTO
}
}
Expand Down

0 comments on commit a859c9a

Please sign in to comment.