File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ class UserTraitsService {
49
49
} ,
50
50
} ] ,
51
51
} ;
52
- // FIXME: Remove the .toLowerCase() when the API is fixed to ignore the case in the route params
53
- const res = await this . private . api . postJson ( `/members/${ handle . toLowerCase ( ) } /traits` , body ) ;
52
+
53
+ const res = await this . private . api . postJson ( `/members/${ handle } /traits` , body ) ;
54
54
return getApiResponsePayloadV3 ( res ) ;
55
55
}
56
56
@@ -71,8 +71,8 @@ class UserTraitsService {
71
71
} ,
72
72
} ] ,
73
73
} ;
74
- // FIXME: Remove the .toLowerCase() when the API is fixed to ignore the case in the route params
75
- const res = await this . private . api . putJson ( `/members/${ handle . toLowerCase ( ) } /traits` , body ) ;
74
+
75
+ const res = await this . private . api . putJson ( `/members/${ handle } /traits` , body ) ;
76
76
return getApiResponsePayloadV3 ( res ) ;
77
77
}
78
78
@@ -83,8 +83,7 @@ class UserTraitsService {
83
83
* @return {Promise } Resolves to the member traits.
84
84
*/
85
85
async deleteUserTrait ( handle , traitId ) {
86
- // FIXME: Remove the .toLowerCase() when the API is fixed to ignore the case in the route params
87
- const res = await this . private . api . delete ( `/members/${ handle . toLowerCase ( ) } /traits?traitIds=${ traitId } ` ) ;
86
+ const res = await this . private . api . delete ( `/members/${ handle } /traits?traitIds=${ traitId } ` ) ;
88
87
return getApiResponsePayloadV3 ( res ) ;
89
88
}
90
89
}
You can’t perform that action at this time.
0 commit comments