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,
|
user,
|
||||||
paymentMethod: 'IAP GooglePlay',
|
paymentMethod: 'IAP GooglePlay',
|
||||||
amount,
|
amount,
|
||||||
headers: req.headers
|
headers: req.headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
res.respond(200, googleRes);
|
res.respond(200, googleRes);
|
||||||
@@ -154,12 +154,13 @@ api.iapiOSVerify = {
|
|||||||
correctReceipt = false;
|
correctReceipt = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
await payments.buyGems({
|
|
||||||
|
await payments.buyGems({ // eslint-disable-line babel/no-await-in-loop
|
||||||
user,
|
user,
|
||||||
paymentMethod: 'IAP AppleStore',
|
paymentMethod: 'IAP AppleStore',
|
||||||
amount,
|
amount,
|
||||||
headers: req.headers
|
headers: req.headers,
|
||||||
}); // eslint-disable-line babel/no-await-in-loop
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!correctReceipt) throw new Error('INVALID_ITEM_PURCHASED');
|
if (!correctReceipt) throw new Error('INVALID_ITEM_PURCHASED');
|
||||||
|
|||||||
Reference in New Issue
Block a user