Skip to content

Commit

Permalink
Merge pull request #1746 from tryzealot/fix/overwrite-release-type-in…
Browse files Browse the repository at this point in the history
…-upload-api

Fix always overwrite release type in upload api
  • Loading branch information
icyleaf authored Nov 27, 2024
2 parents d762aa3 + c05ff7a commit ba2b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/release_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def build_metadata(parser, default_source)
# iOS, Android only
self.name ||= parser.name
self.bundle_id = parser.bundle_id if parser.respond_to?(:bundle_id)
self.source ||= default_source
self.source = default_source if self.source.blank?
self.device_type = parser.device
self.release_version = parser.release_version
self.build_version = parser.build_version
self.release_type ||= parser.release_type if parser.respond_to?(:release_type)
self.release_type = parser.release_type if release_type.blank? && parser.respond_to?(:release_type)

icon_file = fetch_icon(parser)
self.icon = icon_file if icon_file
Expand Down

0 comments on commit ba2b26a

Please sign in to comment.