From 6412402d7e160889f34fc7fa7843f6922087f243 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 7 Jul 2023 12:04:15 +0300 Subject: [PATCH] fix(goal.switchState): add project owner to Editable --- trpc/router/goal.ts | 4 ++++ 1 file changed, 4 insertions(+) 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, }, }), ]);