retell-sync-cli 3.5.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -134895,8 +134895,13 @@ async function serializeState(state, {
|
|
|
134895
134895
|
for (const n11 of flowConfig.nodes) {
|
|
134896
134896
|
if (n11.id && n11.name)
|
|
134897
134897
|
nodeNameById.set(n11.id, n11.name);
|
|
134898
|
-
const
|
|
134899
|
-
|
|
134898
|
+
const edgesArray = "edges" in n11 ? n11.edges : undefined;
|
|
134899
|
+
const singleEdge = "edge" in n11 ? n11.edge : undefined;
|
|
134900
|
+
const allEdges = [
|
|
134901
|
+
...edgesArray ?? [],
|
|
134902
|
+
...singleEdge ? [singleEdge] : []
|
|
134903
|
+
];
|
|
134904
|
+
for (const edge of allEdges) {
|
|
134900
134905
|
const destId = edge.destination_node_id;
|
|
134901
134906
|
if (destId) {
|
|
134902
134907
|
if (!incomingEdges.has(destId))
|