From 521a89e5f393ece4697be8440cf0735b5a7e642b Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Tue, 23 Jun 2026 13:38:20 +0200 Subject: [PATCH] Update gather.js (#1557) * Update gather.js * use spread --- lib/tasks/gather.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 9cff960c..db4a0ff9 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -1108,8 +1108,9 @@ class TaskGather extends SttTask { if (this.partialResultHook) { const b3 = this.getTracingPropagation(); const httpHeaders = b3 && {b3}; - this.cs.requestor.request('verb:hook', this.partialResultHook, Object.assign({speech: evt}, - this.cs.callInfo, httpHeaders)); + const params = {speech: evt, ...this.cs.callInfo.toJSON()}; + if (this.id) params.verb_id = this.id; + this.cs.requestor.request('verb:hook', this.partialResultHook, params, httpHeaders); } else if (this.vendor === 'deepgramflux' && ['EagerEndOfTurn', 'TurnResumed'].includes(evt.vendor.evt?.event)) {