@pxp-nd/flow 1.0.90 → 1.0.91
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/controllers/Flow.js +6 -2
- package/package.json +1 -1
package/dist/controllers/Flow.js
CHANGED
|
@@ -384,8 +384,12 @@ let Flow = class Flow extends core_1.Controller {
|
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
386
|
const oName = (_a = totalNodes === null || totalNodes === void 0 ? void 0 : totalNodes.action) === null || _a === void 0 ? void 0 : _a.originName;
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
if (flow.templateType == 'funnel') {
|
|
388
|
+
cond = `and (at.name ='PAGE') and (a.originName is null or a.originName = '${oName}')`;
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
cond = `and (at.name != 'EVENT' and at.name!='PAGE') and (a.originName is null or a.originName = '${oName}')`;
|
|
392
|
+
}
|
|
389
393
|
}
|
|
390
394
|
let actions = await (0, typeorm_1.getManager)()
|
|
391
395
|
.createQueryBuilder(Action_1.default, "a")
|