Skip to content

Commit

Permalink
Add proxy_affecting_change_history.touch to ProxyConfigEventSubscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
lvillen committed Dec 13, 2024
1 parent ed6fa38 commit e77d810
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/subscribers/proxy_config_event_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
class ProxyConfigEventSubscriber
def call(event)
case event
when ProxyConfigs::AffectingObjectChangedEvent then ProxyConfigAffectingChangeWorker.perform_later(event.event_id)
when ProxyConfigs::AffectingObjectChangedEvent then
proxy = Proxy.find(event.proxy_id)
proxy.affecting_change_history.touch
else raise "Unknown event type #{event.class}"
end
end
Expand Down

0 comments on commit e77d810

Please sign in to comment.