Skip to content

Commit

Permalink
feat(ProjectListItem): fix types error
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Jun 5, 2023
1 parent 7214d3c commit d6370bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions trpc/router/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ export const goal = router({
},
},
}),
prisma.goal.findMany<{
include: typeof goalDeepQuery;
}>({
prisma.goal.findMany({
...goalsFilter(input, ctx.session.user.activityId, {
...userDashboardGoals,
}),
Expand Down
4 changes: 2 additions & 2 deletions trpc/router/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const project = router({
},
},
}),
prisma.goal.findMany<{ include: typeof goalDeepQuery }>({
prisma.goal.findMany({
...goalsFilter(input, ctx.session.user.activityId, {
AND: {
OR: [
Expand Down Expand Up @@ -249,7 +249,7 @@ export const project = router({
return {
goals: filtredProjectGoals.map((g) => ({
...g,
project: g.project ? addCalculatedProjectFields(g.project, ctx.session.user.activityId) : g.project,
project: g.project ? addCalculatedProjectFields(g.project, ctx.session.user.activityId) : null,
...addCalclulatedGoalsFields(g, ctx.session.user.activityId),
estimate: getEstimateListFormJoin(g),
})),
Expand Down

0 comments on commit d6370bb

Please sign in to comment.