@goweekdays/core 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @goweekdays/core
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - a87c637: revise invoice update on webhook handler
8
+
3
9
  ## 1.1.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -24977,15 +24977,15 @@ function useInvoiceService() {
24977
24977
  }
24978
24978
  if (subscription.status !== "active") {
24979
24979
  await updateStatusById(subscription._id.toString(), "active", session);
24980
+ await processSuccessfulPayment(
24981
+ {
24982
+ _id: subscription._id,
24983
+ nextBillingDate: /* @__PURE__ */ new Date()
24984
+ },
24985
+ session
24986
+ );
24980
24987
  }
24981
24988
  await updateStatusByInvoiceNumber(invoice.invoiceNumber, "paid", session);
24982
- await processSuccessfulPayment(
24983
- {
24984
- _id: subscription._id,
24985
- nextBillingDate: subscription.nextBillingDate
24986
- },
24987
- session
24988
- );
24989
24989
  const paymentData = {
24990
24990
  invoiceId: invoice.invoiceNumber,
24991
24991
  amount: invoice.amount,