diff --git a/package-lock.json b/package-lock.json index 4b750ed263..a1ade8b68e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "habitica", - "version": "4.215.0", + "version": "4.215.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 94f2cf9ecf..c9ed749fa0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "habitica", "description": "A habit tracker app which treats your goals like a Role Playing Game.", - "version": "4.215.0", + "version": "4.215.1", "main": "./website/server/index.js", "dependencies": { "@babel/core": "^7.16.0", diff --git a/website/server/libs/payments/subscriptions.js b/website/server/libs/payments/subscriptions.js index d4016349fe..1a68734680 100644 --- a/website/server/libs/payments/subscriptions.js +++ b/website/server/libs/payments/subscriptions.js @@ -293,6 +293,7 @@ async function createSubscription (data) { paymentMethod: data.paymentMethod, months: group ? 1 : months, groupId, + autoRenews, }); } diff --git a/website/server/libs/slack.js b/website/server/libs/slack.js index a88d624bfd..615c7d4284 100644 --- a/website/server/libs/slack.js +++ b/website/server/libs/slack.js @@ -182,6 +182,7 @@ function sendSubscriptionNotification ({ paymentMethod, months, groupId, + autoRenews, }) { if (SKIP_SUB_METHOD) { return; @@ -194,8 +195,10 @@ function sendSubscriptionNotification ({ text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month gift subscription for ${recipient.name} ${recipient.id} ${recipient.email}${promoString} using ${paymentMethod} on ${timestamp}`; } else if (groupId) { text = `${buyer.name} ${buyer.id} ${buyer.email} bought a 1-month recurring group-plan for ${groupId} using ${paymentMethod} on ${timestamp}`; - } else { + } else if (autoRenews) { text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month recurring subscription using ${paymentMethod} on ${timestamp}`; + } else { + text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month non-recurring subscription using ${paymentMethod} on ${timestamp}`; } subscriptionSlack