Skip to content

Commit

Permalink
refactor: 구글 이름 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyeonyy committed Oct 11, 2024
1 parent 5096365 commit aa475ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import mouda.backend.member.domain.Member;
import mouda.backend.member.domain.OauthType;
Expand All @@ -20,6 +21,7 @@ public interface MemberRepository extends JpaRepository<Member, Long> {
WHERE m.id = :memberId
""")
@Modifying
@Transactional
void updateLoginDetail(@Param("memberId") long memberId, @Param("oauthType") OauthType oauthType,
@Param("socialLoginId") String socialLoginId);

Expand All @@ -29,5 +31,6 @@ void updateLoginDetail(@Param("memberId") long memberId, @Param("oauthType") Oau
WHERE m.id = :memberId
""")
@Modifying
@Transactional
void updateName(@Param("memberId") long memberId, @Param("name") String name);
}

0 comments on commit aa475ad

Please sign in to comment.