Passing quantity to the API call when buying quests from the shop (#9565)

You can buy multiple quests from the buy modal, but the quanitity is
never passed to the server. So the client thinks that you are buying the
number you said you did, but the server only buys one regardless. This
can lead to syncing problems down the road.
This commit is contained in:
Kip Raske 2017-11-27 19:33:08 -06:00 committed by Sabe Jones
parent 9b8676f02e
commit 03480ebfc7

View file

@ -33,7 +33,7 @@ export function buyQuestItem (store, params) {
return {
result: opResult,
httpCall: axios.post(`/api/v3/user/buy/${params.key}`, {type: 'quest'}),
httpCall: axios.post(`/api/v3/user/buy/${params.key}`, {type: 'quest', quantity}),
};
}