mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
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',
|
||||
'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: {
|
||||
|
||||
Reference in New Issue
Block a user