@pxp-nd/flow 1.0.56 → 1.0.57

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.
@@ -484,12 +484,12 @@ let Flow = class Flow extends core_1.Controller {
484
484
  async changeStatusFlow(params, manager) {
485
485
  let dataFlow = await (0, core_1.__)(Flow_1.default.findOne(params.flowId));
486
486
  if (dataFlow) {
487
- if (dataFlow.status === 'draft' || dataFlow.status === 'paused') {
487
+ if (dataFlow.status === 'off') {
488
488
  //change to active
489
- dataFlow.status = 'active';
489
+ dataFlow.status = 'on';
490
490
  }
491
- else if (dataFlow.status === 'active') {
492
- dataFlow.status = 'paused';
491
+ else {
492
+ dataFlow.status = 'off';
493
493
  }
494
494
  const updFlow = await (0, core_1.__)(manager.save(dataFlow));
495
495
  return { success: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",