diff --git a/ghost/staff-service/lib/emails.js b/ghost/staff-service/lib/emails.js index 765ed99569..cad60b879c 100644 --- a/ghost/staff-service/lib/emails.js +++ b/ghost/staff-service/lib/emails.js @@ -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`; } diff --git a/ghost/staff-service/test/staff-service.test.js b/ghost/staff-service/test/staff-service.test.js index 9285e97b26..bb79d3ed19 100644 --- a/ghost/staff-service/test/staff-service.test.js +++ b/ghost/staff-service/test/staff-service.test.js @@ -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);