Skip to content

Commit

Permalink
Merge pull request #178 from depromeet/feature/#171
Browse files Browse the repository at this point in the history
feat(#171): 유저 디폴트맵 추가
  • Loading branch information
ManHyuk authored Feb 12, 2024
2 parents 5070cf1 + dafed27 commit 9ebc8e1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class OAuth2UserService(
val user = userRepository.findByEmailAndProvider(email, oAuthProvider)
?: createUser(email, image, oAuthProvider)

lifeMapRepository.findFirstByUserId(user.id!!)
?: createUserDefaultLifeMap(user)

userLoginLogService.upsertLatestLogin(user.id)

return user
Expand All @@ -112,6 +115,7 @@ class OAuth2UserService(

userRepository.save(user)
val updateUsername = updateUsername(user)
createUserDefaultLifeMap(user)
return updateUsername
}

Expand Down

0 comments on commit 9ebc8e1

Please sign in to comment.