pay for playback download checkout
This commit is contained in:
@@ -137,7 +137,7 @@ const getActiveSubscription = onCall({ region: REGION }, async (request) => {
|
||||
|
||||
if (subscriptionId) {
|
||||
const subscription = await stripe.subscriptions.retrieve(subscriptionId, {
|
||||
expand: ['items.data.price.product'],
|
||||
expand: ['items.data.price'],
|
||||
})
|
||||
if (subscription) {
|
||||
return {
|
||||
@@ -152,7 +152,7 @@ const getActiveSubscription = onCall({ region: REGION }, async (request) => {
|
||||
customer: customerId,
|
||||
status: 'all',
|
||||
limit: 5,
|
||||
expand: ['data.items.data.price.product'],
|
||||
expand: ['data.items.data.price'],
|
||||
})
|
||||
const [subscription] = response?.data || []
|
||||
if (subscription && ACTIVE_SUBSCRIPTION_STATUSES.has(subscription.status)) {
|
||||
|
||||
Reference in New Issue
Block a user