Skip to content

Commit 1623fef

Browse files
authored
Merge branch 'dev' into bal-3427
2 parents 0fbf2ee + 0e018fe commit 1623fef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/workflows-service/src/collection-flow/controllers/collection-flow.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class CollectionFlowController {
167167
...director,
168168
};
169169
},
170-
),
170+
) || [],
171171
);
172172

173173
const ubos = await Promise.all(
@@ -187,7 +187,7 @@ export class CollectionFlowController {
187187
...ubo,
188188
};
189189
},
190-
),
190+
) || [],
191191
);
192192

193193
await this.workflowService.event(
@@ -199,8 +199,8 @@ export class CollectionFlowController {
199199
entity: {
200200
data: {
201201
additionalInfo: {
202-
directors,
203-
ubos,
202+
directors: directors?.length ? directors : undefined,
203+
ubos: ubos?.length ? ubos : undefined,
204204
},
205205
},
206206
},

0 commit comments

Comments
 (0)