File tree Expand file tree Collapse file tree
src/backend/src/prisma-query-args Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Prisma } from '@prisma/client' ;
2+
3+ export type TeamTypeQueryArgs = ReturnType < typeof getTeamTypeQueryArgs > ;
4+ export type TeamTypePreviewQueryArgs = ReturnType < typeof getTeamTypePreviewQueryArgs > ;
5+
6+ export const getTeamTypeQueryArgs = ( ) =>
7+ Prisma . validator < Prisma . Team_TypeDefaultArgs > ( ) ( {
8+ select : {
9+ name : true
10+ }
11+ } ) ;
12+
13+ export const getTeamTypePreviewQueryArgs = ( ) =>
14+ Prisma . validator < Prisma . Team_TypeDefaultArgs > ( ) ( {
15+ select : {
16+ name : true
17+ }
18+ } ) ;
Original file line number Diff line number Diff line change 11import { Prisma } from '@prisma/client' ;
22import { getUserQueryArgs } from './user.query-args.js' ;
33import { getProjectGanttQueryArgs } from './projects.query-args.js' ;
4+ import { getTeamTypeQueryArgs } from './team-type.query-args.js' ;
45
56export type TeamQueryArgs = ReturnType < typeof getTeamQueryArgs > ;
67
@@ -31,6 +32,6 @@ export const getTeamPreviewQueryArgs = (organizationId: string) =>
3132 members : getUserQueryArgs ( organizationId ) ,
3233 head : getUserQueryArgs ( organizationId ) ,
3334 leads : getUserQueryArgs ( organizationId ) ,
34- teamType : true
35+ teamType : getTeamTypeQueryArgs ( )
3536 }
3637 } ) ;
You can’t perform that action at this time.
0 commit comments