Skip to content

Commit 49a566d

Browse files
committed
feat: notify diego of route updates
After updating a route via the new update route endpoint, it was only stored in the database. Since routes can be changed without restarting the application this commit adds logic to also push the update to diego. Resolves: #4286
1 parent dde675b commit 49a566d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/actions/route_update.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ def update(route:, message:)
66

77
route.save
88
MetadataUpdate.update(route, message)
9+
10+
route.route_mappings.each do |route_mapping|
11+
ProcessRouteHandler.new(route_mapping.process).notify_backend_of_route_update
12+
end
913
end
1014

1115
route

0 commit comments

Comments
 (0)