add deep copy (#1511)

* escape tag data in listen

* deep copy call data for listen
This commit is contained in:
Sam Machin
2026-02-03 15:44:26 +00:00
committed by GitHub
parent b598cd94ae
commit bd435dfff9

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 {