Skip to content

Commit abf4de5

Browse files
author
Andre Turner
committed
revisions to use Actor instead of User and corrected relation in query
1 parent affc35d commit abf4de5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/engagement/workflow/engagement-workflow.neo4j.repository.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class EngagementWorkflowNeo4jRepository
6565
relation('out', '', 'workflowEvent', ACTIVE),
6666
node('node'),
6767
relation('out', undefined, 'who'),
68-
node('who', 'User'),
68+
node('who', 'Actor'),
6969
])
7070
.return<{ dto: UnsecuredDto<WorkflowEvent> }>(
7171
merge('node', {
@@ -95,7 +95,7 @@ export class EngagementWorkflowNeo4jRepository
9595
.apply(
9696
createRelationships(WorkflowEvent, {
9797
in: { workflowEvent: ['Engagement', engagement] },
98-
out: { who: ['User', session.userId] },
98+
out: { who: ['Actor', session.userId] },
9999
}),
100100
)
101101
.apply(this.hydrate())
@@ -120,7 +120,7 @@ export class EngagementWorkflowNeo4jRepository
120120
.query()
121121
.match([
122122
node('node', 'Engagement', { id: engagementId }),
123-
relation('out', '', 'step', INACTIVE),
123+
relation('out', '', 'status', INACTIVE),
124124
node('prop'),
125125
])
126126
.where({ 'prop.value': inArray(steps) })

0 commit comments

Comments
 (0)