DEV: Wrap remote theme update in transaction (#21302)
This commit is contained in:
parent
290bd975c5
commit
7f0682f4f2
|
@ -62,7 +62,7 @@ def update_themes
|
|||
.includes(:remote_theme)
|
||||
.where(enabled: true, auto_update: true)
|
||||
.find_each do |theme|
|
||||
begin
|
||||
theme.transaction do
|
||||
remote_theme = theme.remote_theme
|
||||
next if remote_theme.blank? || remote_theme.remote_url.blank?
|
||||
|
||||
|
|
Loading…
Reference in New Issue