We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7465fc commit 3649910Copy full SHA for 3649910
src/user/repository/user.repository.js
@@ -163,10 +163,10 @@ export const UserRepository = {
163
},
164
165
// 작가 팔로우하기
166
- async FollowArtist(userId, artistId) {
+ async FollowArtist(accountId, artistId) {
167
return await prisma.follow.create({
168
data:{
169
- userId,
+ accountId,
170
artistId
171
}
172
})
src/user/service/user.service.js
@@ -247,7 +247,7 @@ export const UserService = {
247
if(alreadyFollowing)
248
throw new UserAlreadyFollowArtist();
249
250
- const result = await UserRepository.FollowArtist(userId, artistId);
+ const result = await UserRepository.FollowArtist(accountId, artistId);
251
252
return {
253
message:"해당 작가 팔로우를 성공했습니다.",
0 commit comments