Skip to content

Commit

Permalink
Fix on conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Dec 31, 2023
1 parent 8385a21 commit cdd29b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/server/src/trpc/routes/reviewCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ export default adminProcedure
url: input.url,
})
.onConflictDoUpdate({
target: [reviews.externalSiteId, reviews.name, reviews.rating],
target: [reviews.externalSiteId, reviews.name, reviews.issue],
set: {
bottleId,
rating: input.rating,
url: input.url,
issue: input.issue,
updatedAt: sql`NOW()`,
},
})
Expand Down

0 comments on commit cdd29b9

Please sign in to comment.