1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Use correct prize_round parameter

This commit is contained in:
Brett Sun 2016-01-05 19:45:49 +01:00
parent 0ce1633294
commit e76a36621e

View File

@ -10,7 +10,7 @@ let PrizeRatingFetcher = {
};
if (typeof round === 'number') {
params.round = round;
params['prize_round'] = round;
}
return requests.get('rating_average', params);
@ -22,7 +22,7 @@ let PrizeRatingFetcher = {
};
if (typeof round === 'number') {
params.round = round;
params['prize_round'] = round;
}
return requests.get('rating', params);
@ -35,7 +35,7 @@ let PrizeRatingFetcher = {
};
if (typeof round === 'number') {
body.round = round;
body['prize_round'] = round;
}
return requests.post('ratings', { body });