From bacbb825c601569015927ff4e9fe5427f53ce6eb Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 25 Jan 2021 12:40:07 -0600 Subject: [PATCH] Fix missing featured apps --- build-lists.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-lists.js b/build-lists.js index 2bd616f..46b351f 100644 --- a/build-lists.js +++ b/build-lists.js @@ -63,6 +63,8 @@ class BuildLists { path: '/static/video-list.json', buildMethod: async () => { + // console.log('this.getAllVideoAppsList()', this.getAllVideoAppsList()) + return await buildVideoList( this.getAllVideoAppsList() ) @@ -87,6 +89,8 @@ class BuildLists { // ].slice(0, 10 * 1000)) }, beforeSave: videoListSet => { + this.allVideoAppsList = this.getAllVideoAppsList() + return Array.from(videoListSet).map( video => { return { ...video, @@ -214,9 +218,7 @@ class BuildLists { // console.log('appList', appList) - this.allVideoAppsList = this.getAllVideoAppsList() - - // console.log('allVideoAppsList', allVideoAppsList[0]) + // console.log('this.allVideoAppsList', this.allVideoAppsList.length, this.allVideoAppsList[0]) // Add list based routes for ( const listKey in this.lists ) {