Skip to content

Commit

Permalink
fix(goal.switchState): add project owner to Editable
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Jul 7, 2023
1 parent da8a4e6 commit 6412402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trpc/router/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ export const goal = router({
where: {
id: input.id,
},
include: {
project: true,
},
});

if (!actualGoal) {
Expand Down Expand Up @@ -660,6 +663,7 @@ export const goal = router({
include: {
participants: { include: { user: true, ghost: true } },
activity: { include: { user: true, ghost: true } },
project: true,
},
}),
]);
Expand Down

0 comments on commit 6412402

Please sign in to comment.