From 1e6f8ebe6f840ee82243fe05b1065c822a055726 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 31 May 2024 17:14:11 -0500 Subject: [PATCH] fix: use whitelisted events to identify known_events --- .../management/commands/helpers/queued_sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event_routing_backends/management/commands/helpers/queued_sender.py b/event_routing_backends/management/commands/helpers/queued_sender.py index 3e60f88c..98a0ecf2 100644 --- a/event_routing_backends/management/commands/helpers/queued_sender.py +++ b/event_routing_backends/management/commands/helpers/queued_sender.py @@ -51,7 +51,7 @@ def is_known_event(self, event): """ if "name" in event: for processor in self.engine.processors: - if event["name"] in processor.registry.mapping: + if event["name"] in processor.whitelist: return True return False