From e77d8103c6f088160f0d9f071c80d7976cb3748d Mon Sep 17 00:00:00 2001 From: lvillen Date: Fri, 13 Dec 2024 13:21:47 +0100 Subject: [PATCH] Add proxy_affecting_change_history.touch to ProxyConfigEventSubscriber --- app/subscribers/proxy_config_event_subscriber.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/subscribers/proxy_config_event_subscriber.rb b/app/subscribers/proxy_config_event_subscriber.rb index ed313dcdce..c97118608e 100644 --- a/app/subscribers/proxy_config_event_subscriber.rb +++ b/app/subscribers/proxy_config_event_subscriber.rb @@ -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