@@ -496,18 +496,24 @@ export class EngagementRepository extends CommonRepository {
496
496
. subQuery ( ( sub ) =>
497
497
sub
498
498
. match ( [
499
- node ( 'project' , 'Project' , pickBy ( { id : input . filter ?. projectId } ) ) ,
499
+ node (
500
+ 'project' ,
501
+ 'Project' ,
502
+ pickBy ( { id : input . filter ?. project ?. id } ) ,
503
+ ) ,
500
504
relation ( 'out' , '' , 'engagement' , ACTIVE ) ,
501
505
node ( 'node' , 'Engagement' ) ,
502
506
] )
503
507
. apply ( whereNotDeletedInChangeset ( changeset ) )
504
508
. return ( [ 'node' , 'project' ] )
505
509
. apply ( ( q ) =>
506
- changeset && input . filter ?. projectId
510
+ changeset && input . filter ?. project ?. id
507
511
? q
508
512
. union ( )
509
513
. match ( [
510
- node ( 'project' , 'Project' , { id : input . filter . projectId } ) ,
514
+ node ( 'project' , 'Project' , {
515
+ id : input . filter . project ?. id ,
516
+ } ) ,
511
517
relation ( 'out' , '' , 'engagement' , INACTIVE ) ,
512
518
node ( 'node' , 'Engagement' ) ,
513
519
relation ( 'in' , '' , 'changeset' , ACTIVE ) ,
@@ -739,11 +745,6 @@ export const engagementFilters = filter.define(() => EngagementFilters, {
739
745
) ,
740
746
} ) ,
741
747
status : filter . stringListProp ( ) ,
742
- projectId : filter . pathExists ( ( id ) => [
743
- node ( 'node' ) ,
744
- relation ( 'in' , '' , 'engagement' ) ,
745
- node ( 'project' , 'Project' , { id } ) ,
746
- ] ) ,
747
748
partnerId : filter . pathExists ( ( id ) => [
748
749
node ( 'node' ) ,
749
750
relation ( 'in' , '' , 'engagement' ) ,
0 commit comments