mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
v3: fix build and ios IAP
This commit is contained in:
@@ -40,6 +40,7 @@ describe('GET challenges/user', () => {
|
|||||||
});
|
});
|
||||||
expect(foundChallenge.group).to.eql({
|
expect(foundChallenge.group).to.eql({
|
||||||
_id: publicGuild._id,
|
_id: publicGuild._id,
|
||||||
|
id: publicGuild._id,
|
||||||
type: publicGuild.type,
|
type: publicGuild.type,
|
||||||
privacy: publicGuild.privacy,
|
privacy: publicGuild.privacy,
|
||||||
name: publicGuild.name,
|
name: publicGuild.name,
|
||||||
@@ -58,6 +59,7 @@ describe('GET challenges/user', () => {
|
|||||||
});
|
});
|
||||||
expect(foundChallenge1.group).to.eql({
|
expect(foundChallenge1.group).to.eql({
|
||||||
_id: publicGuild._id,
|
_id: publicGuild._id,
|
||||||
|
id: publicGuild._id,
|
||||||
type: publicGuild.type,
|
type: publicGuild.type,
|
||||||
privacy: publicGuild.privacy,
|
privacy: publicGuild.privacy,
|
||||||
name: publicGuild.name,
|
name: publicGuild.name,
|
||||||
@@ -71,6 +73,7 @@ describe('GET challenges/user', () => {
|
|||||||
});
|
});
|
||||||
expect(foundChallenge2.group).to.eql({
|
expect(foundChallenge2.group).to.eql({
|
||||||
_id: publicGuild._id,
|
_id: publicGuild._id,
|
||||||
|
id: publicGuild._id,
|
||||||
type: publicGuild.type,
|
type: publicGuild.type,
|
||||||
privacy: publicGuild.privacy,
|
privacy: publicGuild.privacy,
|
||||||
name: publicGuild.name,
|
name: publicGuild.name,
|
||||||
@@ -89,6 +92,7 @@ describe('GET challenges/user', () => {
|
|||||||
});
|
});
|
||||||
expect(foundChallenge1.group).to.eql({
|
expect(foundChallenge1.group).to.eql({
|
||||||
_id: publicGuild._id,
|
_id: publicGuild._id,
|
||||||
|
id: publicGuild._id,
|
||||||
type: publicGuild.type,
|
type: publicGuild.type,
|
||||||
privacy: publicGuild.privacy,
|
privacy: publicGuild.privacy,
|
||||||
name: publicGuild.name,
|
name: publicGuild.name,
|
||||||
@@ -102,6 +106,7 @@ describe('GET challenges/user', () => {
|
|||||||
});
|
});
|
||||||
expect(foundChallenge2.group).to.eql({
|
expect(foundChallenge2.group).to.eql({
|
||||||
_id: publicGuild._id,
|
_id: publicGuild._id,
|
||||||
|
id: publicGuild._id,
|
||||||
type: publicGuild.type,
|
type: publicGuild.type,
|
||||||
privacy: publicGuild.privacy,
|
privacy: publicGuild.privacy,
|
||||||
name: publicGuild.name,
|
name: publicGuild.name,
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ api.iapiOSVerify = {
|
|||||||
if (purchaseDataList.length > 0) {
|
if (purchaseDataList.length > 0) {
|
||||||
let correctReceipt = true;
|
let correctReceipt = true;
|
||||||
|
|
||||||
for (let index of purchaseDataList) {
|
for (let index in purchaseDataList) {
|
||||||
switch (purchaseDataList[index].productId) {
|
switch (purchaseDataList[index].productId) {
|
||||||
case 'com.habitrpg.ios.Habitica.4gems':
|
case 'com.habitrpg.ios.Habitica.4gems':
|
||||||
payments.buyGems({user, paymentMethod: 'IAP AppleStore', amount: 1});
|
payments.buyGems({user, paymentMethod: 'IAP AppleStore', amount: 1});
|
||||||
|
|||||||
Reference in New Issue
Block a user