From 8cf4768f9e0954a27983680263b8244f94901e73 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 31 Aug 2022 21:38:08 +0100 Subject: [PATCH] fixing missing application id when promoting draft release to live --- tools/beta-release/release.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/beta-release/release.js b/tools/beta-release/release.js index 94789ce..babe425 100644 --- a/tools/beta-release/release.js +++ b/tools/beta-release/release.js @@ -173,12 +173,12 @@ const downloadToFile = async (url, options, outputFile) => { }) } -const promoteDraftToLive = async () => { - const fappEditId = await startPlayRelease(applicationId) +const promoteDraftToLive = async (applicationId) => { + const editId = await startPlayRelease(applicationId) await androidPublisher.edits.tracks .update({ - editId: fappEditId, + editId: editId, packageName: applicationId, track: "beta", requestBody: { @@ -194,7 +194,7 @@ const promoteDraftToLive = async () => { await androidPublisher.edits.commit({ - editId: fappEditId, + editId: editId, packageName: applicationId, }).catch((error) => Promise.reject(error.response.data)) }