@@ -288,9 +288,15 @@ export default async function ShareVideoPage(props: Props) {
288288 sharedOrganization : {
289289 organizationId : sharedVideos . organizationId ,
290290 } ,
291+ owner : {
292+ stripeSubscriptionStatus : users . stripeSubscriptionStatus ,
293+ thirdPartyStripeSubscriptionId :
294+ users . thirdPartyStripeSubscriptionId ,
295+ } ,
291296 } )
292297 . from ( videos )
293298 . leftJoin ( sharedVideos , eq ( videos . id , sharedVideos . videoId ) )
299+ . leftJoin ( users , eq ( videos . ownerId , users . id ) )
294300 . where ( eq ( videos . id , videoId ) ) ,
295301 ) . pipe ( Policy . withPublicPolicy ( videosPolicy . canView ( videoId ) ) ) ;
296302
@@ -437,6 +443,10 @@ async function AuthorizedContent({
437443 id : videos . id ,
438444 name : videos . name ,
439445 ownerId : videos . ownerId ,
446+ owner : {
447+ stripeSubscriptionStatus : users . stripeSubscriptionStatus ,
448+ thirdPartyStripeSubscriptionId : users . thirdPartyStripeSubscriptionId ,
449+ } ,
440450 createdAt : videos . createdAt ,
441451 updatedAt : videos . updatedAt ,
442452 awsRegion : videos . awsRegion ,
@@ -459,6 +469,7 @@ async function AuthorizedContent({
459469 } )
460470 . from ( videos )
461471 . leftJoin ( sharedVideos , eq ( videos . id , sharedVideos . videoId ) )
472+ . leftJoin ( users , eq ( videos . ownerId , users . id ) )
462473 . where ( eq ( videos . id , videoId ) )
463474 . execute ( ) ;
464475
0 commit comments