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:
parent
0ce1633294
commit
e76a36621e
@ -10,7 +10,7 @@ let PrizeRatingFetcher = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof round === 'number') {
|
if (typeof round === 'number') {
|
||||||
params.round = round;
|
params['prize_round'] = round;
|
||||||
}
|
}
|
||||||
|
|
||||||
return requests.get('rating_average', params);
|
return requests.get('rating_average', params);
|
||||||
@ -22,7 +22,7 @@ let PrizeRatingFetcher = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof round === 'number') {
|
if (typeof round === 'number') {
|
||||||
params.round = round;
|
params['prize_round'] = round;
|
||||||
}
|
}
|
||||||
|
|
||||||
return requests.get('rating', params);
|
return requests.get('rating', params);
|
||||||
@ -35,7 +35,7 @@ let PrizeRatingFetcher = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof round === 'number') {
|
if (typeof round === 'number') {
|
||||||
body.round = round;
|
body['prize_round'] = round;
|
||||||
}
|
}
|
||||||
|
|
||||||
return requests.post('ratings', { body });
|
return requests.post('ratings', { body });
|
||||||
|
Loading…
Reference in New Issue
Block a user