Skip to content

Commit

Permalink
Fix: Fix image
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 2, 2023
1 parent 3c5e74b commit ff9f5c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/app/jobs/image_convert_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def perform(chart_name, image_file_id, type)
ImageConvertJob.perform_later(chart_name, resource, :background_v3)
image_file.delete
when :background_v3
ImageConvertJob.perform_later(chart_name, resource, :background_v1)
chart = Chart.find_by(name: chart_name)
ImageConvertJob.perform_later(
chart_name,
chart.resources[:cover],
:background_v1
)
end
end
end

0 comments on commit ff9f5c5

Please sign in to comment.