From 5268bbb8a9fc41259741c9ab2cfecb19e66cf636 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 12 Jun 2019 17:21:08 +0200 Subject: [PATCH] fix(subscription): reset lastReminderDate when creating a new subscription --- website/server/libs/payments/subscriptions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/server/libs/payments/subscriptions.js b/website/server/libs/payments/subscriptions.js index fe0119e09a..ba7305da8b 100644 --- a/website/server/libs/payments/subscriptions.js +++ b/website/server/libs/payments/subscriptions.js @@ -116,6 +116,7 @@ async function createSubscription (data) { nextPaymentProcessing: data.nextPaymentProcessing, nextBillingDate: data.nextBillingDate, additionalData: data.additionalData, + lastReminderDate: null, owner: data.user._id, });