Fix filter error

This commit is contained in:
Sam Carlton 2020-11-20 16:17:14 -06:00
parent c49f6566c3
commit 04aea445df

View file

@ -3,7 +3,7 @@ import { promises as fs } from 'fs'
import slugify from 'slugify' import slugify from 'slugify'
import axios from 'axios' import axios from 'axios'
import { statuses } from './build-app-list' // import { statuses } from './build-app-list'
// console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE) // console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE)
@ -82,12 +82,21 @@ export default async function () {
}) })
// Game already has entry // Game already has entry
if (gameIndex !== -1) continue if (gameIndex !== -1) {
gameList[gameIndex].reports.push(game)
continue
}
const status = parseStatus(game) const status = parseStatus(game)
// console.log('status', status) if (typeof status !== 'string') {
console.warn('Non-string status', game)
continue
}
gameList.push({ gameList.push({
name: game.Games, name: game.Games,