Skip to content

Commit

Permalink
fix: outh 데이터 생성 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
proHyundo committed Oct 12, 2024
1 parent 9b9ea6b commit 2494abb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-server.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Spring Boot Gradle CICD (version 0.2.14)
name: Spring Boot Gradle CICD (version 0.2.15)

on:
push:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public User createUser(AuthPlatform authPlatform, AuthMemberResponse authMemberR

// 신규 사용자의 Auth 정보 저장
authService.createAuth(Auth.builder()
.oauthId(tsidKeyGenerator.generateTsid())
.userId(targetUserId)
.oauthPlatformName(authPlatform)
.oauthPlatformId(authMemberResponse.getPlatformId())
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/mapper/AuthMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</select>

<insert id="save" useGeneratedKeys="true" keyProperty="oauthId">
insert into t_oauth(user_id,oauth_platform_name,oauth_platform_id)
values ( #{userId},#{oauthPlatformName},#{oauthPlatformId} )
insert into t_oauth(oauth_id, user_id,oauth_platform_name,oauth_platform_id)
values (#{oauth_id}, #{userId},#{oauthPlatformName},#{oauthPlatformId} )
</insert>

<update id="updateOauthPlatformId" parameterType="long">
Expand Down

0 comments on commit 2494abb

Please sign in to comment.