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:
@@ -158,6 +158,7 @@ export class SelfhostTeamSubscriptionManager extends SubscriptionManager {
|
|||||||
'stripeScheduleId',
|
'stripeScheduleId',
|
||||||
'nextBillAt',
|
'nextBillAt',
|
||||||
'canceledAt',
|
'canceledAt',
|
||||||
|
'end',
|
||||||
]),
|
]),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -243,6 +243,7 @@ export class UserSubscriptionManager extends SubscriptionManager {
|
|||||||
'stripeScheduleId',
|
'stripeScheduleId',
|
||||||
'nextBillAt',
|
'nextBillAt',
|
||||||
'canceledAt',
|
'canceledAt',
|
||||||
|
'end',
|
||||||
]),
|
]),
|
||||||
create: {
|
create: {
|
||||||
targetId: userId,
|
targetId: userId,
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ export class WorkspaceSubscriptionManager extends SubscriptionManager {
|
|||||||
'nextBillAt',
|
'nextBillAt',
|
||||||
'canceledAt',
|
'canceledAt',
|
||||||
'quantity',
|
'quantity',
|
||||||
|
'end',
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
|
|||||||
Reference in New Issue
Block a user