Skip to content

Commit 3649910

Browse files
committed
FIX : 작가 팔로우하기 버그 수정
1 parent b7465fc commit 3649910

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/user/repository/user.repository.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ export const UserRepository = {
163163
},
164164

165165
// 작가 팔로우하기
166-
async FollowArtist(userId, artistId) {
166+
async FollowArtist(accountId, artistId) {
167167
return await prisma.follow.create({
168168
data:{
169-
userId,
169+
accountId,
170170
artistId
171171
}
172172
})

src/user/service/user.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const UserService = {
247247
if(alreadyFollowing)
248248
throw new UserAlreadyFollowArtist();
249249

250-
const result = await UserRepository.FollowArtist(userId, artistId);
250+
const result = await UserRepository.FollowArtist(accountId, artistId);
251251

252252
return {
253253
message:"해당 작가 팔로우를 성공했습니다.",

0 commit comments

Comments
 (0)