fix(web): align billing-client SubscriptionDoc type with platform schema

This commit is contained in:
saravanakumardb1 2026-04-13 22:57:32 -07:00
parent a0c5f14bbf
commit 2bf172935b

View File

@ -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 ?? '',
};
}