From d02c6794f449f3b1feed03006f9a983f609e04ef Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 11 Aug 2021 12:42:17 -0400 Subject: [PATCH] Event: teach how to execute a plugin --- src/lib/Hydra/Event.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/Hydra/Event.pm b/src/lib/Hydra/Event.pm index 8608c87b..cd8bdde2 100644 --- a/src/lib/Hydra/Event.pm +++ b/src/lib/Hydra/Event.pm @@ -34,3 +34,8 @@ sub new_event { "event" => parse_payload($channel_name, $payload), }, $self; } + +sub execute { + my ($self, $db, $plugin) = @_; + return $self->{"event"}->execute($db, $plugin); +}