fix(web): align billing-client SubscriptionDoc type with platform schema
This commit is contained in:
parent
a0c5f14bbf
commit
2bf172935b
@ -50,13 +50,13 @@ function toSubscription(doc: SubscriptionDoc): Subscription {
|
||||
userId: doc.userId,
|
||||
plan: doc.plan as Subscription['plan'],
|
||||
status: doc.status as Subscription['status'],
|
||||
currentPeriodStart: doc.currentPeriodStart,
|
||||
currentPeriodStart: doc.currentPeriodStart ?? '',
|
||||
currentPeriodEnd: doc.currentPeriodEnd,
|
||||
cancelAtPeriodEnd: doc.cancelAtPeriodEnd,
|
||||
stripeCustomerId: doc.stripeCustomerId,
|
||||
stripeSubscriptionId: doc.stripeSubscriptionId,
|
||||
createdAt: doc.createdAt,
|
||||
updatedAt: doc.updatedAt,
|
||||
createdAt: doc.createdAt ?? '',
|
||||
updatedAt: doc.updatedAt ?? '',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user