Fix iOS and Android manifest
This commit is contained in:
@@ -165,5 +165,13 @@ export const handler = async (context: Context) => {
|
||||
|
||||
connection.end()
|
||||
|
||||
return jsonResponse({ versions, games: gamesList })
|
||||
const seenGames = new Set<number>()
|
||||
const finalVersions = versions.filter(v => {
|
||||
if (platString !== 'android' && platString !== 'ios') return true
|
||||
if (seenGames.has(v.game)) return false
|
||||
seenGames.add(v.game)
|
||||
return true
|
||||
})
|
||||
|
||||
return jsonResponse({ versions: finalVersions, games: gamesList })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user