Skip to content

Commit 5b6f8d8

Browse files
committed
made the bare minimum changes from the first commit
1 parent 5f719fb commit 5b6f8d8

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/backend/src/prisma-query-args/teams.query-args.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export const getTeamQueryArgs = (organizationId: string) =>
1313
head: getUserQueryArgs(organizationId),
1414
leads: getUserQueryArgs(organizationId),
1515
userArchived: getUserQueryArgs(organizationId),
16-
teamType: getTeamTypeQueryArgs(),
16+
teamType: {
17+
select: {
18+
name: true
19+
}
20+
},
1721
projects: {
1822
where: {
1923
wbsElement: {
@@ -31,13 +35,10 @@ export const getTeamPreviewQueryArgs = (organizationId: string) =>
3135
members: getUserQueryArgs(organizationId),
3236
head: getUserQueryArgs(organizationId),
3337
leads: getUserQueryArgs(organizationId),
34-
teamType: getTeamTypeQueryArgs()
35-
}
36-
});
37-
38-
export const getTeamTypeQueryArgs = () =>
39-
Prisma.validator<Prisma.Team_TypeDefaultArgs>()({
40-
select: {
41-
name: true
38+
teamType: {
39+
select: {
40+
name: true
41+
}
42+
}
4243
}
4344
});

0 commit comments

Comments
 (0)