From f53e81eb8e55eed97595a5fa3c6279da13dbdb2e Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 24 Apr 2021 15:09:48 -0500 Subject: [PATCH] Fix tags saving as empty object/Set --- helpers/build-app-list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/build-app-list.js b/helpers/build-app-list.js index 2afdd0a..8546294 100644 --- a/helpers/build-app-list.js +++ b/helpers/build-app-list.js @@ -107,7 +107,7 @@ async function fetchBundleGenres () { } -function generateTagsFromGenres( bundleId, bundleGenres ) { +function generateTagsSetFromGenres( bundleId, bundleGenres ) { // If we don't have this bundleID // then return empty if ( !bundleGenres.has( bundleId ) ) return [] @@ -186,7 +186,7 @@ export default async function () { // console.log('appScan', appScan) - const tags = generateTagsFromGenres( appScan.bundleIdentifier, bundleGenres ) + const tags = generateTagsSetFromGenres( appScan.bundleIdentifier, bundleGenres ) // Add to scanned app list scanListMap.set( appSlug, { @@ -207,7 +207,7 @@ export default async function () { category: { slug: 'uncategorized' }, - tags, + tags: Array.from(tags), relatedLinks }) })