@@ -23,7 +23,6 @@ export const __getFollower = createAsyncThunk(
23
23
const data = await instance . get ( `/friendship/followers` ) ;
24
24
return thunkAPI . fulfillWithValue ( data . data ) ;
25
25
} catch ( error ) {
26
- console . log ( error . response . data . errorMessage ) ;
27
26
return thunkAPI . rejectWithValue ( error . response . data . errorMessage ) ;
28
27
}
29
28
}
@@ -37,7 +36,6 @@ export const __getFollowing = createAsyncThunk(
37
36
const data = await instance . get ( `/friendship/followings` ) ;
38
37
return thunkAPI . fulfillWithValue ( data . data ) ;
39
38
} catch ( error ) {
40
- console . log ( error . response . data . errorMessage ) ;
41
39
return thunkAPI . rejectWithValue ( error . response . data . errorMessage ) ;
42
40
}
43
41
}
@@ -46,14 +44,12 @@ export const __getFollowing = createAsyncThunk(
46
44
export const __postFollowState = createAsyncThunk (
47
45
"getFollowState" ,
48
46
async ( payload , thunkAPI ) => {
49
- console . log ( "팔로우 스테이트" , payload ) ;
50
47
try {
51
48
const data = await instance . post ( `/friendship/followings/${ payload . id } ` ) ;
52
49
if ( payload . state === "follower" ) {
53
50
return thunkAPI . dispatch ( __getFollower ( ) ) ;
54
51
} else return thunkAPI . dispatch ( __getFollowing ( ) ) ;
55
52
} catch ( error ) {
56
- console . log ( error . response . data . errorMessage ) ;
57
53
return thunkAPI . rejectWithValue ( error . response . data . errorMessage ) ;
58
54
}
59
55
}
@@ -64,10 +60,8 @@ export const __getFollowingCount = createAsyncThunk(
64
60
async ( payload , thunkAPI ) => {
65
61
try {
66
62
const { data } = await instance . get ( `/friendship/followings/counting` ) ;
67
- // console.log("팔로잉 카운트", data.data);
68
63
return thunkAPI . fulfillWithValue ( data . data ) ;
69
64
} catch ( error ) {
70
- console . log ( error . response . data . errorMessage ) ;
71
65
return thunkAPI . rejectWithValue ( error . response . data . errorMessage ) ;
72
66
}
73
67
}
@@ -78,10 +72,9 @@ export const __getFollowerCount = createAsyncThunk(
78
72
async ( payload , thunkAPI ) => {
79
73
try {
80
74
const { data } = await instance . get ( `/friendship/followers/counting` ) ;
81
- // console.log("팔로워 카운트", data.data);
75
+
82
76
return thunkAPI . fulfillWithValue ( data . data ) ;
83
77
} catch ( error ) {
84
- console . log ( error . response . data . errorMessage ) ;
85
78
return thunkAPI . rejectWithValue ( error . response . data . errorMessage ) ;
86
79
}
87
80
}
@@ -97,7 +90,6 @@ export const followSlice = createSlice({
97
90
state . isLoading = true ;
98
91
} ,
99
92
[ __getFollower . fulfilled ] : ( state , action ) => {
100
- console . log ( "followerList" ) ;
101
93
state . isLoading = false ;
102
94
state . follower . followerList = action . payload . data ;
103
95
} ,
@@ -110,7 +102,6 @@ export const followSlice = createSlice({
110
102
state . isLoading = true ;
111
103
} ,
112
104
[ __getFollowing . fulfilled ] : ( state , action ) => {
113
- console . log ( "followingList" ) ;
114
105
state . isLoading = false ;
115
106
state . following . followingList = action . payload . data ;
116
107
} ,
@@ -125,7 +116,6 @@ export const followSlice = createSlice({
125
116
[ __postFollowState . fulfilled ] : ( state , action ) => {
126
117
state . isLoading = false ;
127
118
state . followState = action . payload ;
128
- console . log ( action . payload ) ;
129
119
} ,
130
120
[ __postFollowState . rejected ] : ( state , action ) => {
131
121
state . isLoading = false ;
0 commit comments