Fixes
This commit is contained in:
@@ -42,11 +42,15 @@ export async function handler(context: Context, db: MySql2Database) {
|
|||||||
downloadUrls: JSON.parse(v.downloadUrls),
|
downloadUrls: JSON.parse(v.downloadUrls),
|
||||||
platforms: JSON.parse(v.platforms),
|
platforms: JSON.parse(v.platforms),
|
||||||
executables: JSON.parse(v.executables),
|
executables: JSON.parse(v.executables),
|
||||||
downloadUrl: null as string | null,
|
downloadUrl: undefined as string | undefined,
|
||||||
executable: null as string | null
|
executable: undefined as string | undefined
|
||||||
}))
|
}))
|
||||||
.filter(v => {
|
.filter(v => {
|
||||||
if (showAll) return true
|
if (showAll) {
|
||||||
|
delete v.downloadUrl
|
||||||
|
delete v.executable
|
||||||
|
return true
|
||||||
|
}
|
||||||
const i = v.platforms.indexOf(platString)
|
const i = v.platforms.indexOf(platString)
|
||||||
if (i !== -1) {
|
if (i !== -1) {
|
||||||
v.downloadUrl = v.downloadUrls[i]
|
v.downloadUrl = v.downloadUrls[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user