Ver código fonte

query node - set featured video fix

ondratra 3 anos atrás
pai
commit
99ac1b7c76
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      query-node/mappings/src/content/video.ts

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

@@ -367,13 +367,13 @@ export async function content_FeaturedVideosSet(
   // calculate diff sets
   const toRemove = existingFeaturedVideos.filter(existingFV =>
     !videoIds
-      .map(item => item.toHex())
+      .map(item => item.toString())
       .some(isSame(existingFV.id))
   )
   const toAdd = videoIds.filter(video =>
     !existingFeaturedVideos
       .map(item => item.id)
-      .some(isSame(video.toHex()))
+      .some(isSame(video.toString()))
   )
 
   // mark previously featured videos as not-featured