Fix
This commit is contained in:
1 file changed
+1
-9
@@ -27,7 +27,7 @@ export const handler = async (context: Context) => {
|
||||
if (versionsData.length != 1) return
|
||||
|
||||
const downloadData = JSON.parse(versionsData[0].downloadData)[
|
||||
(target + '-' + arch)
|
||||
target
|
||||
.replace('windows', 'win')
|
||||
.replace('darwin', 'macos')
|
||||
.replace('x86_64', 'x64')
|
||||
@@ -45,14 +45,6 @@ export const handler = async (context: Context) => {
|
||||
|
||||
if (fileInfo.length != 1) return
|
||||
|
||||
console.log({
|
||||
version: versionsData[0].version,
|
||||
notes: versionsData[0].notes,
|
||||
pub_date: versionsData[0].releaseDate,
|
||||
url: 'https://games-r2.lncvrt.xyz/' + fileInfo[0].path,
|
||||
signature: downloadData.signature
|
||||
})
|
||||
|
||||
connection.end()
|
||||
return jsonResponse({
|
||||
version: versionsData[0].version,
|
||||
|
||||
Reference in new issue
Block a user