Browse Source

isCurated - remove "||"

Leszek Wiesner 4 years ago
parent
commit
9d262099bf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      query-node/mappings/content-directory/entity/create.ts

+ 2 - 2
query-node/mappings/content-directory/entity/create.ts

@@ -61,7 +61,7 @@ async function createChannel(
   channel.id = id
   channel.title = p.title
   channel.description = p.description
-  channel.isCurated = p.isCurated || false
+  channel.isCurated = p.isCurated
   channel.isPublic = p.isPublic
   channel.coverPhotoUrl = p.coverPhotoUrl
   channel.avatarPhotoUrl = p.avatarPhotoUrl
@@ -216,7 +216,7 @@ async function createVideo(
   video.description = p.description
   video.duration = p.duration
   video.hasMarketing = p.hasMarketing
-  video.isCurated = p.isCurated || false
+  video.isCurated = p.isCurated
   video.isExplicit = p.isExplicit
   video.isPublic = p.isPublic
   video.publishedBeforeJoystream = p.publishedBeforeJoystream