Skip to content

Commit

Permalink
Handle developer rejected state for draft store version
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Dec 13, 2023
1 parent 1f919ea commit 86cf1a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/app_store/connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ def ensure_editable_version(is_force)
log "Cancelling the release for releasable app store version", latest_version.to_json
latest_version.app_store_version_submission.delete!

when api::AppStoreVersion::AppStoreState::PREPARE_FOR_SUBMISSION
when api::AppStoreVersion::AppStoreState::PREPARE_FOR_SUBMISSION,
api::AppStoreVersion::AppStoreState::DEVELOPER_REJECTED

log "Found draft app store version", latest_version.to_json
raise VersionAlreadyAddedToSubmissionError unless is_force
Expand Down

0 comments on commit 86cf1a2

Please sign in to comment.