Update gather.js (#1557)

* Update gather.js

* use spread
This commit is contained in:
Sam Machin
2026-06-23 13:38:20 +02:00
committed by GitHub
parent 81601a290d
commit 521a89e5f3
+3 -2
View File
@@ -1108,8 +1108,9 @@ class TaskGather extends SttTask {
if (this.partialResultHook) { if (this.partialResultHook) {
const b3 = this.getTracingPropagation(); const b3 = this.getTracingPropagation();
const httpHeaders = b3 && {b3}; const httpHeaders = b3 && {b3};
this.cs.requestor.request('verb:hook', this.partialResultHook, Object.assign({speech: evt}, const params = {speech: evt, ...this.cs.callInfo.toJSON()};
this.cs.callInfo, httpHeaders)); if (this.id) params.verb_id = this.id;
this.cs.requestor.request('verb:hook', this.partialResultHook, params, httpHeaders);
} }
else if (this.vendor === 'deepgramflux' && else if (this.vendor === 'deepgramflux' &&
['EagerEndOfTurn', 'TurnResumed'].includes(evt.vendor.evt?.event)) { ['EagerEndOfTurn', 'TurnResumed'].includes(evt.vendor.evt?.event)) {