mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
Merged v5.13.1 into main
v5.13.1
This commit is contained in:
commit
e0f86cb1cb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ghost-admin",
|
||||
"version": "5.13.0",
|
||||
"version": "5.13.1",
|
||||
"description": "Ember.js admin client for Ghost",
|
||||
"author": "Ghost Foundation",
|
||||
"homepage": "http://ghost.org",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ghost",
|
||||
"version": "5.13.0",
|
||||
"version": "5.13.1",
|
||||
"description": "The professional publishing platform",
|
||||
"author": "Ghost Foundation",
|
||||
"homepage": "https://ghost.org",
|
||||
|
@ -230,7 +230,8 @@ class StaffServiceEmails {
|
||||
if (offer.type === 'percent') {
|
||||
offAmount = `${offer.amount}% off`;
|
||||
} else if (offer.type === 'fixed') {
|
||||
offAmount = `${this.getFormattedAmount({currency: offer.currency, amount: offer.amount})} off`;
|
||||
const amount = this.getAmount(offer.amount);
|
||||
offAmount = `${this.getFormattedAmount({currency: offer.currency, amount})} off`;
|
||||
} else if (offer.type === 'trial') {
|
||||
offAmount = `${offer.amount} days free`;
|
||||
}
|
||||
|
@ -308,7 +308,7 @@ describe('StaffService', function () {
|
||||
duration_in_months: 3,
|
||||
type: 'fixed',
|
||||
currency: 'USD',
|
||||
amount: 10
|
||||
amount: 1000
|
||||
};
|
||||
|
||||
await service.notifyPaidSubscriptionStart({member, offer, tier, subscription}, options);
|
||||
@ -333,7 +333,7 @@ describe('StaffService', function () {
|
||||
duration: 'forever',
|
||||
type: 'fixed',
|
||||
currency: 'USD',
|
||||
amount: 20
|
||||
amount: 2000
|
||||
};
|
||||
|
||||
await service.notifyPaidSubscriptionStart({member, offer, tier, subscription}, options);
|
||||
|
Loading…
Reference in New Issue
Block a user