Skip to content

Commit 6bb5e10

Browse files
authored
fix: fixed documents mapping (#3314)
1 parent 19e6498 commit 6bb5e10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

services/workflows-service/src/workflow/workflow.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,7 +2681,9 @@ export class WorkflowService {
26812681
transaction,
26822682
);
26832683
const document = runtimeData?.context?.documents?.find(
2684-
(document: DefaultContextSchema['documents'][number]) => document.id === documentId,
2684+
(document: DefaultContextSchema['documents'][number]) => {
2685+
return document._document?.id === documentId;
2686+
},
26852687
);
26862688

26872689
return addPropertiesSchemaToDocument(document, workflowDef.documentsSchema);

0 commit comments

Comments
 (0)