@pxp-nd/flow 1.1.14 → 1.1.15
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 +2 -2
- package/package.json +1 -1
package/dist/controllers/Flow.js
CHANGED
|
@@ -252,8 +252,8 @@ let Flow = class Flow extends core_1.Controller {
|
|
|
252
252
|
};
|
|
253
253
|
let flowDataClone;
|
|
254
254
|
let isCopy = false;
|
|
255
|
-
//if we have a
|
|
256
|
-
if (params.
|
|
255
|
+
//if we have a name as parameter the origin is a template
|
|
256
|
+
if (params.name) {
|
|
257
257
|
flowDataClone = await (0, typeorm_1.getManager)().save(Flow_1.default, { ...flowToClone, name: `${params.name}`, vendorId: params.vendorId, type: 'custom' });
|
|
258
258
|
}
|
|
259
259
|
else {
|