@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 +6 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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,
|