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
2025-06-13 18:31:18 +08:00
committed by GitHub
parent 04f3d88e2c
commit a1abb60dec
3 changed files with 3 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ export class SelfhostTeamSubscriptionManager extends SubscriptionManager {
'stripeScheduleId',
'nextBillAt',
'canceledAt',
'end',
]),
});
}

View File

@@ -243,6 +243,7 @@ export class UserSubscriptionManager extends SubscriptionManager {
'stripeScheduleId',
'nextBillAt',
'canceledAt',
'end',
]),
create: {
targetId: userId,

View File

@@ -166,6 +166,7 @@ export class WorkspaceSubscriptionManager extends SubscriptionManager {
'nextBillAt',
'canceledAt',
'quantity',
'end',
]),
},
create: {