File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function foreachstateBuildingFn(data: Specification.Foreachstate): () => Specifi
31
31
32
32
//FIXME https://github.com/serverlessworkflow/sdk-typescript/issues/95
33
33
34
- data . usedForCompensation = false ;
34
+ data . usedForCompensation = data . usedForCompensation || false ;
35
35
const validate = validators . get ( 'Foreachstate' ) ;
36
36
// TODO: ignore validation if no validator or throw ?
37
37
if ( ! validate ) return data ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const buildersExtensions: { [key: string]: BuilderExtension } = {
66
66
Foreachstate : {
67
67
preValidate : `\r\n data.type = 'foreach';
68
68
\r\n //FIXME https://github.com/serverlessworkflow/sdk-typescript/issues/95
69
- \r\n data.usedForCompensation = false;` ,
69
+ \r\n data.usedForCompensation = data.usedForCompensation || false;` ,
70
70
} ,
71
71
Injectstate : {
72
72
preValidate : `\r\n data.type = 'inject';` ,
You can’t perform that action at this time.
0 commit comments