This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -50,24 +50,30 @@ export default class RtsClient {
50
50
* Track a referral with the Riot Team Server. This should be called once a referred
51
51
* user has been successfully registered.
52
52
* @param {string } referrer the user ID of one who referred the user to Riot.
53
- * @param {string } user_id the user ID of the user being referred.
54
- * @param {string } user_email the email address linked to `user_id `.
53
+ * @param {string } userId the user ID of the user being referred.
54
+ * @param {string } userEmail the email address linked to `userId `.
55
55
* @returns {Promise } a promise that resolves to { team_token: 'sometoken' } upon
56
56
* success.
57
57
*/
58
- trackReferral ( referrer , user_id , user_email ) {
58
+ trackReferral ( referrer , userId , userEmail ) {
59
59
return request ( this . _url + '/register' ,
60
60
{
61
- body : { referrer, user_id, user_email} ,
61
+ body : {
62
+ referrer : referrer ,
63
+ user_id : userId ,
64
+ user_email : userEmail ,
65
+ } ,
62
66
method : 'POST' ,
63
67
}
64
68
) ;
65
69
}
66
70
67
- getTeam ( team_token ) {
71
+ getTeam ( teamToken ) {
68
72
return request ( this . _url + '/teamConfiguration' ,
69
73
{
70
- qs : { team_token} ,
74
+ qs : {
75
+ team_token : teamToken ,
76
+ } ,
71
77
}
72
78
) ;
73
79
}
You can’t perform that action at this time.
0 commit comments