deep copy call data for listen

This commit is contained in:
Sam Machin
2026-02-03 15:32:27 +00:00
parent db4d887efd
commit 85bd21045d
+2 -1
View File
@@ -152,7 +152,8 @@ class TaskListen extends Task {
async _startListening(cs, ep) {
this._initListeners(ep);
const ci = this.nested ? this.parentTask.sd.callInfo : cs.callInfo.toJSON();
const tempci = this.nested ? this.parentTask.sd.callInfo : cs.callInfo.toJSON();
const ci = structuredClone(tempci);
if (this._ignoreCustomerData) {
delete ci.customerData;
} else {