Fix iOS and Android manifest
This commit is contained in:
1 file changed
+9
-1
@@ -165,5 +165,13 @@ export const handler = async (context: Context) => {
|
|||||||
|
|
||||||
connection.end()
|
connection.end()
|
||||||
|
|
||||||
return jsonResponse({ versions, games: gamesList })
|
return jsonResponse({
|
||||||
|
versions,
|
||||||
|
games:
|
||||||
|
platString === 'android' || platString === 'ios'
|
||||||
|
? versions.filter(
|
||||||
|
(v, i, arr) => arr.findIndex(other => other.game === v.game) === i
|
||||||
|
)
|
||||||
|
: versions
|
||||||
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user