Skip to content

Commit 29a2840

Browse files
committed
fix: remove post_id arg
1 parent 14c182d commit 29a2840

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/common/FollowButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const FollowButton: React.FC<PostFollowButtonProps> = ({
8383
__typename: 'User',
8484
},
8585
});
86+
console.log('hello', variables);
8687
follow({ variables });
8788
setButtonText('팔로잉');
8889
}

src/lib/graphql/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export const CONFIRM_CHANGE_EMAIL = gql`
184184
`;
185185

186186
export const FOLLOW_USER = gql`
187-
mutation Follow($following_user_id: ID!, $post_id: ID!) {
187+
mutation Follow($following_user_id: ID!) {
188188
follow(following_user_id: $following_user_id) {
189189
id
190190
is_followed
@@ -193,7 +193,7 @@ export const FOLLOW_USER = gql`
193193
`;
194194

195195
export const UNFOLLOW_USER = gql`
196-
mutation Unfollow($following_user_id: ID!, $post_id: ID!) {
196+
mutation Unfollow($following_user_id: ID!) {
197197
unfollow(following_user_id: $following_user_id) {
198198
id
199199
is_followed

0 commit comments

Comments
 (0)