Skip to content

Commit

Permalink
Fix the integrable data migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Oct 10, 2024
1 parent 64f761e commit 3ea795a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ def up
end

ReleasePlatformRun.find_each do |run|
app = run.app
config = run.config
next unless config.present?

app = run.app
if config.dig("internal_release", "submissions").present?
config["internal_release"]["submissions"].each do |submission|
submission["integrable_id"] = app.id
Expand All @@ -45,7 +47,7 @@ def up
submission["integrable_type"] = "App"
end
end

run.update! config: config
end
end
Expand Down

0 comments on commit 3ea795a

Please sign in to comment.