mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix eslint errors
This commit is contained in:
@@ -78,7 +78,7 @@ api.iapAndroidVerify = {
|
||||
user,
|
||||
paymentMethod: 'IAP GooglePlay',
|
||||
amount,
|
||||
headers: req.headers
|
||||
headers: req.headers,
|
||||
});
|
||||
|
||||
res.respond(200, googleRes);
|
||||
@@ -154,12 +154,13 @@ api.iapiOSVerify = {
|
||||
correctReceipt = false;
|
||||
break;
|
||||
}
|
||||
await payments.buyGems({
|
||||
|
||||
await payments.buyGems({ // eslint-disable-line babel/no-await-in-loop
|
||||
user,
|
||||
paymentMethod: 'IAP AppleStore',
|
||||
amount,
|
||||
headers: req.headers
|
||||
}); // eslint-disable-line babel/no-await-in-loop
|
||||
headers: req.headers,
|
||||
});
|
||||
}
|
||||
|
||||
if (!correctReceipt) throw new Error('INVALID_ITEM_PURCHASED');
|
||||
|
||||
Reference in New Issue
Block a user