mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Add quantity information when purchasing items (#9481)
This commit is contained in:
committed by
Matteo Pagliazzi
parent
6b625a60ab
commit
08ccd595f2
@@ -156,6 +156,7 @@ module.exports = function purchase (user, req = {}, analytics) {
|
|||||||
itemType: 'Market',
|
itemType: 'Market',
|
||||||
acquireMethod: 'Gems',
|
acquireMethod: 'Gems',
|
||||||
gemCost: price * 4,
|
gemCost: price * 4,
|
||||||
|
quantityPurchased: quantity,
|
||||||
category: 'behavior',
|
category: 'behavior',
|
||||||
headers: req.headers,
|
headers: req.headers,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user