fixing missing application id when promoting draft release to live
This commit is contained in:
parent
c580bcbdab
commit
8cf4768f9e
|
@ -173,12 +173,12 @@ const downloadToFile = async (url, options, outputFile) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const promoteDraftToLive = async () => {
|
const promoteDraftToLive = async (applicationId) => {
|
||||||
const fappEditId = await startPlayRelease(applicationId)
|
const editId = await startPlayRelease(applicationId)
|
||||||
|
|
||||||
await androidPublisher.edits.tracks
|
await androidPublisher.edits.tracks
|
||||||
.update({
|
.update({
|
||||||
editId: fappEditId,
|
editId: editId,
|
||||||
packageName: applicationId,
|
packageName: applicationId,
|
||||||
track: "beta",
|
track: "beta",
|
||||||
requestBody: {
|
requestBody: {
|
||||||
|
@ -194,7 +194,7 @@ const promoteDraftToLive = async () => {
|
||||||
|
|
||||||
|
|
||||||
await androidPublisher.edits.commit({
|
await androidPublisher.edits.commit({
|
||||||
editId: fappEditId,
|
editId: editId,
|
||||||
packageName: applicationId,
|
packageName: applicationId,
|
||||||
}).catch((error) => Promise.reject(error.response.data))
|
}).catch((error) => Promise.reject(error.response.data))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue