Event: teach how to execute a plugin

This commit is contained in:
Graham Christensen 2021-08-11 12:42:17 -04:00 committed by Your Name
parent 4e86e55008
commit d02c6794f4

View file

@ -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);
}