11import { Prisma } from '@prisma/client' ;
2- import { getLinkQueryArgs } from './links.query-args' ;
32import { getUserQueryArgs } from './user.query-args' ;
43import { getDescriptionBulletQueryArgs } from './description-bullets.query-args' ;
54import { getTeamPreviewQueryArgs } from './teams.query-args' ;
65import { getTaskQueryArgs } from './tasks.query-args' ;
6+ import { getLinkQueryArgs } from './links.query-args' ;
77import { getWorkPackagePreviewQueryArgs , getWorkPackageQueryArgs } from './work-packages.query-args' ;
88
99export type ProjectQueryArgs = ReturnType < typeof getProjectQueryArgs > ;
@@ -23,7 +23,7 @@ export const getProjectQueryArgs = (organizationId: string) =>
2323 manager : getUserQueryArgs ( organizationId ) ,
2424 descriptionBullets : { where : { dateDeleted : null } , ...getDescriptionBulletQueryArgs ( organizationId ) } ,
2525 tasks : { where : { dateDeleted : null } , ...getTaskQueryArgs ( organizationId ) } ,
26- links : { where : { dateDeleted : null } , ...getLinkQueryArgs ( organizationId ) } ,
26+ links : { where : { dateDeleted : null } , ...getLinkQueryArgs ( ) } ,
2727 changes : {
2828 where : { changeRequest : { dateDeleted : null } } ,
2929 include : { implementer : getUserQueryArgs ( organizationId ) , changeRequest : true }
@@ -94,7 +94,7 @@ export const getProjectPreviewQueryArgs = (organizationId: string) =>
9494 status : true
9595 }
9696 } ,
97- workPackages : getWorkPackagePreviewQueryArgs ( organizationId ) ,
97+ workPackages : getWorkPackagePreviewQueryArgs ( ) ,
9898 projectId : true ,
9999 budget : true ,
100100 abbreviation : true ,
@@ -122,11 +122,11 @@ export const getProjectOverviewQueryArgs = (organizationId: string) =>
122122 lead : getUserQueryArgs ( organizationId ) ,
123123 manager : getUserQueryArgs ( organizationId ) ,
124124 status : true ,
125- links : getLinkQueryArgs ( organizationId ) ,
125+ links : getLinkQueryArgs ( ) ,
126126 tasks : getTaskQueryArgs ( organizationId )
127127 }
128128 } ,
129- workPackages : getWorkPackagePreviewQueryArgs ( organizationId ) ,
129+ workPackages : getWorkPackagePreviewQueryArgs ( ) ,
130130 projectId : true ,
131131 budget : true ,
132132 abbreviation : true ,
0 commit comments