mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Actually save fields on themes:update (#15497)
`RemoteTheme#update_from_remote` does not save theme fields on its own. Fixes theme/theme component autoupdates working only partially.
This commit is contained in:
@@ -60,6 +60,7 @@ def update_themes
|
||||
|
||||
puts "Updating '#{theme.name}' for '#{RailsMultisite::ConnectionManagement.current_db}'..."
|
||||
remote_theme.update_from_remote
|
||||
theme.save!
|
||||
|
||||
raise RemoteTheme::ImportError.new(remote_theme.last_error_text) if remote_theme.last_error_text.present?
|
||||
rescue => e
|
||||
|
||||
Reference in New Issue
Block a user