mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
AbstractGemItemOperation - BuyQuestWithGemOperation (#10476)
This commit is contained in:
@@ -63,7 +63,7 @@ function purchaseItem (user, item, price, type, key) {
|
||||
}
|
||||
}
|
||||
|
||||
const acceptedTypes = ['eggs', 'hatchingPotions', 'food', 'quests', 'gear', 'bundles'];
|
||||
const acceptedTypes = ['eggs', 'hatchingPotions', 'food', 'gear', 'bundles'];
|
||||
const singlePurchaseTypes = ['gear'];
|
||||
module.exports = function purchase (user, req = {}, analytics) {
|
||||
let type = get(req.params, 'type');
|
||||
|
||||
Reference in New Issue
Block a user