From 9e940d0662591b72ad060a3f3933cd5708916062 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 11 Jun 2022 15:34:13 -0500 Subject: [PATCH] Add context to category map --- helpers/categories.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helpers/categories.js b/helpers/categories.js index ea78267..a06e8a0 100644 --- a/helpers/categories.js +++ b/helpers/categories.js @@ -7,6 +7,8 @@ export function makeCategorySlug ( categoryName ) { return makeSlug( categoryName ) } + +// Maps iTunes Genres titles to Category IDs const categoryMap = new Map([ [ 'Business', 2 ], [ 'Entertainment', 5 ], @@ -20,7 +22,12 @@ const categoryMap = new Map([ // [ 'Name', 1 ], // Needs work before apps can be assigned games category - // so for now 'Games' genre is Entertainment + // Games will be assigned to the "Games" category + // but need to be put into games kind/list + // so the solution may be to separate games from apps + // during app list build and then merge "Game from Apps" + // into the "Games" list + // but for now 'Games' genre is Entertainment // [ 'Games', 100 ], [ 'Games', 5 ], ])