Browse Source

query node - video update fix

ondratra 3 years ago
parent
commit
08ed7aeb29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      query-node/mappings/src/content/video.ts

+ 1 - 1
query-node/mappings/src/content/video.ts

@@ -232,7 +232,7 @@ export async function content_VideoUpdated(
   } = new Content.VideoUpdatedEvent(event).data
 
   // load video
-  const video = await db.get(Video, { where: { id: videoId.toString() } as FindConditions<Video> })
+  const video = await db.get(Video, { where: { id: videoId.toString() } as FindConditions<Video>, relations: ['channel', 'license'] })
 
   // ensure video exists
   if (!video) {