mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-04-05 06:47:31 +00:00
add null check for eventHook (#1534)
* add null check for eventHook * move guard to superclass, remove logging that adds no value --------- Co-authored-by: rhonda hollis <rhonda@jambonz.org> Co-authored-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
@@ -105,6 +105,7 @@ class TaskLlm extends Task {
|
||||
}
|
||||
|
||||
async sendEventHook(data) {
|
||||
if (!this.eventHook) return;
|
||||
await this.cs?.requestor.request('llm:event', this.eventHook, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user