@7365admin1/core 3.48.1-staging.183 → 3.48.1-staging.184
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/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test/e2e/harness.mjs +9 -0
- package/test/e2e/subscription-seat-update.e2e.test.mjs +177 -0
package/dist/index.js
CHANGED
|
@@ -29881,7 +29881,7 @@ function useSubscriptionService() {
|
|
|
29881
29881
|
}
|
|
29882
29882
|
const items = [];
|
|
29883
29883
|
const dueInvoice = await getByDueDate(
|
|
29884
|
-
subscription.nextBillingDate,
|
|
29884
|
+
new Date(subscription.nextBillingDate),
|
|
29885
29885
|
"pending"
|
|
29886
29886
|
);
|
|
29887
29887
|
if (value.promoCode) {
|
|
@@ -30022,7 +30022,13 @@ function useSubscriptionService() {
|
|
|
30022
30022
|
{
|
|
30023
30023
|
_id: value.subscriptionId,
|
|
30024
30024
|
currentSeats: value.seats,
|
|
30025
|
-
|
|
30025
|
+
// Keep the organisation's own seat limit. It is worked out above —
|
|
30026
|
+
// the current limit, raised when the new seat count is larger — and
|
|
30027
|
+
// was then thrown away here in favour of a literal 0. Now that 0
|
|
30028
|
+
// means UNLIMITED, writing it handed the organisation an uncapped
|
|
30029
|
+
// subscription on every seat change. A plan that really is unlimited
|
|
30030
|
+
// is already 0 above, so it still passes through untouched.
|
|
30031
|
+
maxSeats,
|
|
30026
30032
|
paidSeats: paidSeats > value.seats ? paidSeats : value.seats,
|
|
30027
30033
|
promoCode: value.promoCode ?? "",
|
|
30028
30034
|
amount: value.seats * Number(newMonthlySubscriptionPrice.toFixed(2))
|