From c05ff7ae561e8383b2fbe41aef86b5149553c283 Mon Sep 17 00:00:00 2001 From: icyleaf Date: Wed, 27 Nov 2024 15:50:42 +0000 Subject: [PATCH] fix(web): always overwrite release_type when upload app --- app/models/concerns/release_parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/release_parser.rb b/app/models/concerns/release_parser.rb index 5980ed03..d15b730a 100644 --- a/app/models/concerns/release_parser.rb +++ b/app/models/concerns/release_parser.rb @@ -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