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:
@@ -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}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user