mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Fixed finding newly created zero-amount price
no-issue The condition in the find statement was incorrecly referring to the subscription rather than the price for the subscription.
This commit is contained in:
parent
12d4e42bb1
commit
d5269d8a9a
@ -643,8 +643,8 @@ module.exports = class MemberRepository {
|
||||
amount: 0
|
||||
}]
|
||||
}, options)).toJSON();
|
||||
zeroValuePrice = product.stripePrices.find((price) => {
|
||||
return price.currency.toLowerCase() === subscription.get('currency').toLowerCase() && price.amount === 0;
|
||||
zeroValuePrice = product.stripePrices.find((p) => {
|
||||
return p.currency.toLowerCase() === price.get('currency').toLowerCase() && p.amount === 0;
|
||||
});
|
||||
zeroValuePrices.push(zeroValuePrice);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user