Fix iOS and Android manifest

This commit is contained in:
2026-02-16 21:28:03 -07:00
parent 87bc958f29
commit 04a3ebc8aa

View File

@@ -165,5 +165,13 @@ export const handler = async (context: Context) => {
connection.end() 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 })
} }