Skip to content

Commit

Permalink
set new data with updated template (#2097)
Browse files Browse the repository at this point in the history
* set new data with updated template

* fix
  • Loading branch information
SebouChu committed Jul 12, 2024
1 parent 1a5df82 commit e01ae79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/jobs/refactor_options_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@ def perform
template.option_categories = template.show_category
template.option_summary = template.show_summary
template.option_status = template.show_status
block.data = template.data
block.save
end
Communication::Block.organizations.find_each do |block|
template = block.template
template.option_link = template.with_link
block.data = template.data
block.save
end
Communication::Block.pages.find_each do |block|
template = block.template
template.option_image = template.show_image
template.option_summary = template.show_description
template.option_main_summary = template.show_main_description
block.data = template.data
block.save
end
Communication::Block.persons.find_each do |block|
template = block.template
template.option_image = template.with_photo
template.option_link = template.with_link
block.data = template.data
block.save
end
Communication::Block.posts.find_each do |block|
Expand All @@ -41,6 +45,7 @@ def perform
template.option_date = !template.hide_date
template.option_image = !template.hide_image
template.option_summary = !template.hide_summary
block.data = template.data
block.save
end
# Headings (pas de lien avec les options)
Expand Down

0 comments on commit e01ae79

Please sign in to comment.