@postxl/generator 0.56.4 → 0.56.6

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.
@@ -83,7 +83,8 @@ export class ${meta.actions.dispatcher.class} {
83
83
  execution: IActionExecution
84
84
  }) => Promise<ResultOfAction<A>>
85
85
 
86
- return method({ data: action.payload, execution })
86
+ // NOTE: We need to bind the method to the service instance, as it is a method of the service and not a standalone function.
87
+ return method.bind(this.updateService.${modelMeta.businessLogic.update.serviceVariableName})({ data: action.payload, execution })
87
88
  }
88
89
  `;
89
90
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generator",
3
- "version": "0.56.4",
3
+ "version": "0.56.6",
4
4
  "main": "./dist/generator.js",
5
5
  "typings": "./dist/generator.d.ts",
6
6
  "bin": {