Skip to content

Commit 6c6b8e0

Browse files
authored
Merge pull request #3260 from SeedCompany/bugfix/project-workflow-event-list
2 parents 10f0c8c + ecf65f8 commit 6c6b8e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ProjectWorkflowNeo4jRepository
6565
relation('out', '', 'workflowEvent', ACTIVE),
6666
node('node'),
6767
relation('out', undefined, 'who'),
68-
node('who', 'User'),
68+
node('who', 'Actor'),
6969
])
7070
.match([
7171
node('project'),
@@ -104,7 +104,7 @@ export class ProjectWorkflowNeo4jRepository
104104
.apply(
105105
createRelationships(WorkflowEvent, {
106106
in: { workflowEvent: ['Project', project] },
107-
out: { who: ['User', session.userId] },
107+
out: { who: ['Actor', session.userId] },
108108
}),
109109
)
110110
.apply(this.hydrate())

src/components/user/user.repository.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ export class UserRepository extends DtoRepository<typeof User, [Session | ID]>(
4444
.query()
4545
.raw('', { ids })
4646
.matchNode('user', 'User')
47-
.where({ 'user.id': inArray('ids', true) })
47+
.where({ 'user.id': inArray('$ids', true) })
48+
.with('user as node')
4849
.apply(this.hydrate(session))
4950
.union()
5051
.matchNode('agent', 'SystemAgent')
51-
.where({ 'agent.id': inArray('ids', true) })
52+
.where({ 'agent.id': inArray('$ids', true) })
5253
.return<{ dto: UnsecuredDto<User | SystemAgent> }>(
5354
merge('agent', {
5455
__typename: '"SystemAgent"',

0 commit comments

Comments
 (0)