Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 028c40e

Browse files
author
Luke Barnard
committed
Linting
1 parent fa1981c commit 028c40e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/RtsClient.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,30 @@ export default class RtsClient {
5050
* Track a referral with the Riot Team Server. This should be called once a referred
5151
* user has been successfully registered.
5252
* @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`.
5555
* @returns {Promise} a promise that resolves to { team_token: 'sometoken' } upon
5656
* success.
5757
*/
58-
trackReferral(referrer, user_id, user_email) {
58+
trackReferral(referrer, userId, userEmail) {
5959
return request(this._url + '/register',
6060
{
61-
body: {referrer, user_id, user_email},
61+
body: {
62+
referrer: referrer,
63+
user_id: userId,
64+
user_email: userEmail,
65+
},
6266
method: 'POST',
6367
}
6468
);
6569
}
6670

67-
getTeam(team_token) {
71+
getTeam(teamToken) {
6872
return request(this._url + '/teamConfiguration',
6973
{
70-
qs: {team_token},
74+
qs: {
75+
team_token: teamToken,
76+
},
7177
}
7278
);
7379
}

0 commit comments

Comments
 (0)