diff --git a/trpc/router/goal.ts b/trpc/router/goal.ts index 8eedb3674..6ce0b35e6 100644 --- a/trpc/router/goal.ts +++ b/trpc/router/goal.ts @@ -612,6 +612,9 @@ export const goal = router({ where: { id: input.id, }, + include: { + project: true, + }, }); if (!actualGoal) { @@ -660,6 +663,7 @@ export const goal = router({ include: { participants: { include: { user: true, ghost: true } }, activity: { include: { user: true, ghost: true } }, + project: true, }, }), ]);