fix(server): should save end date of subscription in db (#12814)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Subscription end dates are now correctly saved and updated for Stripe
subscriptions, ensuring accurate display and management of subscription
periods.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
liuyi authored and GitHub committed 2025-06-13 18:31:18 +08:00
1 parent 04f3d88e2c
commit a1abb60dec
3 files changed
+3

No files matched your search

@@ -158,6 +158,7 @@ export class SelfhostTeamSubscriptionManager extends SubscriptionManager {
'stripeScheduleId',
'nextBillAt',
'canceledAt',
'end',
]),
});
}
@@ -243,6 +243,7 @@ export class UserSubscriptionManager extends SubscriptionManager {
'stripeScheduleId',
'nextBillAt',
'canceledAt',
'end',
]),
create: {
targetId: userId,
@@ -166,6 +166,7 @@ export class WorkspaceSubscriptionManager extends SubscriptionManager {
'nextBillAt',
'canceledAt',
'quantity',
'end',
]),
},
create: {