Browse Source

Revert .env, update content-dir-consts

Leszek Wiesner 4 years ago
parent
commit
32e21975d6
2 changed files with 9 additions and 9 deletions
  1. 1 1
      query-node/.env
  2. 8 8
      query-node/mappings/content-directory/content-dir-consts.ts

+ 1 - 1
query-node/.env

@@ -44,7 +44,7 @@ MAPPINGS_LOCATION=../../src
 TYPES_JSON=../../typedefs.json
 
 # Indexer GraphQL API endpoint to fetch indexed events
-INDEXER_ENDPOINT_URL=http://localhost:4002/graphql
+INDEXER_ENDPOINT_URL=http://localhost:4100/graphql
 
 # Block height from which the processor starts. Note that if
 # there are already processed events in the database, this setting is ignored

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

@@ -18,14 +18,14 @@ export enum ContentDirectoryKnownClasses {
 export const contentDirectoryClassNamesWithId: { classId: number; name: string }[] = [
   { name: ContentDirectoryKnownClasses.CHANNEL, classId: 1 },
   { name: ContentDirectoryKnownClasses.CATEGORY, classId: 2 },
-  { name: ContentDirectoryKnownClasses.KNOWNLICENSE, classId: 6 },
-  { name: ContentDirectoryKnownClasses.USERDEFINEDLICENSE, classId: 0 },
-  { name: ContentDirectoryKnownClasses.LANGUAGE, classId: 7 },
-  { name: ContentDirectoryKnownClasses.JOYSTREAMMEDIALOCATION, classId: 5 },
-  { name: ContentDirectoryKnownClasses.HTTPMEDIALOCATION, classId: 4 },
-  { name: ContentDirectoryKnownClasses.VIDEOMEDIA, classId: 12 },
-  { name: ContentDirectoryKnownClasses.VIDEO, classId: 11 },
-  { name: ContentDirectoryKnownClasses.VIDEOMEDIAENCODING, classId: 13 },
+  { name: ContentDirectoryKnownClasses.KNOWNLICENSE, classId: 5 },
+  { name: ContentDirectoryKnownClasses.USERDEFINEDLICENSE, classId: 9 },
+  { name: ContentDirectoryKnownClasses.LANGUAGE, classId: 6 },
+  { name: ContentDirectoryKnownClasses.JOYSTREAMMEDIALOCATION, classId: 4 },
+  { name: ContentDirectoryKnownClasses.HTTPMEDIALOCATION, classId: 3 },
+  { name: ContentDirectoryKnownClasses.VIDEOMEDIA, classId: 11 },
+  { name: ContentDirectoryKnownClasses.VIDEO, classId: 10 },
+  { name: ContentDirectoryKnownClasses.VIDEOMEDIAENCODING, classId: 12 },
 ]
 
 export const CategoryPropertyNamesWithId: IPropertyIdWithName = {