Skip to content

Commit

Permalink
fix(web): always overwrite release_type when upload app
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Nov 27, 2024
1 parent d762aa3 commit c05ff7a
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 c05ff7a

Please sign in to comment.