Fix missing featured apps

This commit is contained in:
Sam Carlton 2021-01-25 12:40:07 -06:00
parent ee90acc82f
commit bacbb825c6

View file

@ -63,6 +63,8 @@ class BuildLists {
path: '/static/video-list.json', path: '/static/video-list.json',
buildMethod: async () => { buildMethod: async () => {
// console.log('this.getAllVideoAppsList()', this.getAllVideoAppsList())
return await buildVideoList( this.getAllVideoAppsList() ) return await buildVideoList( this.getAllVideoAppsList() )
@ -87,6 +89,8 @@ class BuildLists {
// ].slice(0, 10 * 1000)) // ].slice(0, 10 * 1000))
}, },
beforeSave: videoListSet => { beforeSave: videoListSet => {
this.allVideoAppsList = this.getAllVideoAppsList()
return Array.from(videoListSet).map( video => { return Array.from(videoListSet).map( video => {
return { return {
...video, ...video,
@ -214,9 +218,7 @@ class BuildLists {
// console.log('appList', appList) // console.log('appList', appList)
this.allVideoAppsList = this.getAllVideoAppsList() // console.log('this.allVideoAppsList', this.allVideoAppsList.length, this.allVideoAppsList[0])
// console.log('allVideoAppsList', allVideoAppsList[0])
// Add list based routes // Add list based routes
for ( const listKey in this.lists ) { for ( const listKey in this.lists ) {