diff --git a/ghost/admin/package.json b/ghost/admin/package.json index e826bbcb0a..33e503b51b 100644 --- a/ghost/admin/package.json +++ b/ghost/admin/package.json @@ -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", diff --git a/ghost/core/package.json b/ghost/core/package.json index da13f5b38a..7b21f6206b 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -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", 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);