You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
292
+
ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
@@ -441,7 +441,7 @@ async function AuthorizedContent({
441
441
id: videos.id,
442
442
name: videos.name,
443
443
ownerId: videos.ownerId,
444
-
ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
444
+
ownerIsPro: sql<number>`IF(${users.stripeSubscriptionStatus} IN ('active','trialing','complete','paid') OR ${users.thirdPartyStripeSubscriptionId} IS NOT NULL, 1, 0)`,
445
445
createdAt: videos.createdAt,
446
446
updatedAt: videos.updatedAt,
447
447
awsRegion: videos.awsRegion,
@@ -652,8 +652,8 @@ async function AuthorizedContent({
0 commit comments