Skip to content

Commit

Permalink
fix(goal): map tags id to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jun 29, 2023
1 parent dddb6f8 commit 7f61562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const createGoal = async (activityId: string, input: GoalCommon) => {
data: {
tags: input.tags?.length
? {
connect: input.tags,
connect: input.tags.map(({ id }) => ({ id })),
}
: undefined,
estimate: correctEstimate?.id
Expand Down

0 comments on commit 7f61562

Please sign in to comment.