Browse Source

query-node: rename Channel.title->Channel.handle

metmirr 4 years ago
parent
commit
4699a88ce0

+ 1 - 1
query-node/mappings/content-directory/content-dir-consts.ts

@@ -38,7 +38,7 @@ export const CategoryPropertyNamesWithId: IPropertyIdWithName = {
 }
 
 export const channelPropertyNamesWithId: IPropertyIdWithName = {
-  0: 'title',
+  0: 'handle',
   1: 'description',
   2: 'coverPhotoURL',
   3: 'avatarPhotoURL',

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

@@ -59,7 +59,7 @@ async function createChannel(
 
   channel.version = block
   channel.id = id
-  channel.title = p.title
+  channel.handle = p.handle
   channel.description = p.description
   channel.isCurated = p.isCurated || false
   channel.isPublic = p.isPublic

+ 1 - 1
query-node/mappings/types.ts

@@ -40,7 +40,7 @@ export interface IReference {
 }
 
 export interface IChannel {
-  title: string
+  handle: string
   description: string
   coverPhotoURL: string
   avatarPhotoURL: string