From 8bfd218d32693e4ba7a5ef87ce3a39111d0fe7ef Mon Sep 17 00:00:00 2001 From: Terence Ho <> Date: Fri, 7 Oct 2022 00:19:07 +0800 Subject: [PATCH] [resumes][chore] revert changes --- apps/portal/prisma/schema.prisma | 2 -- apps/portal/src/components/resumes/comments/CommentsForm.tsx | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/portal/prisma/schema.prisma b/apps/portal/prisma/schema.prisma index 668b5ba6..95c4381f 100644 --- a/apps/portal/prisma/schema.prisma +++ b/apps/portal/prisma/schema.prisma @@ -146,8 +146,6 @@ model ResumesCommentVote { updatedAt DateTime @updatedAt user User @relation(fields: [userId], references: [id], onDelete: Cascade) comment ResumesComment @relation(fields: [commentId], references: [id], onDelete: Cascade) - - @@unique([commentId, userId]) } // Start of Offers project models. diff --git a/apps/portal/src/components/resumes/comments/CommentsForm.tsx b/apps/portal/src/components/resumes/comments/CommentsForm.tsx index c21314f2..da8f7c59 100644 --- a/apps/portal/src/components/resumes/comments/CommentsForm.tsx +++ b/apps/portal/src/components/resumes/comments/CommentsForm.tsx @@ -41,6 +41,7 @@ export default function CommentsForm({ }); const reviewCreateMutation = trpc.useMutation('resumes.reviews.user.create'); + // TODO: Give a feedback to the user if the action succeeds/fails const onSubmit: SubmitHandler = async (data) => { await reviewCreateMutation.mutate({ resumeId,