Skip to content

Commit

Permalink
fix publish app to GooglePlay. (status: 400, message: This edit has a…
Browse files Browse the repository at this point in the history
…lready been successfully committed, please create a new Edit.)
  • Loading branch information
kecson committed Aug 23, 2024
1 parent f68dfc9 commit f1c444c
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ class AppPackagePublisherPlayStore extends AppPackagePublisher {
uploadMedia: uploadMedia,
);

await publisherApi.edits.commit(
publishConfig.packageName,
appEdit.id!,
);

if (publishConfig.track != null) {
//must update track before edit commit.
await publisherApi.edits.tracks.update(
Track(track: publishConfig.track),
publishConfig.packageName,
Expand All @@ -65,6 +61,11 @@ class AppPackagePublisherPlayStore extends AppPackagePublisher {
);
}

await publisherApi.edits.commit(
publishConfig.packageName,
appEdit.id!,
);

return PublishResult(
url: '',
);
Expand Down

0 comments on commit f1c444c

Please sign in to comment.