[resumes][chore] revert changes

pull/313/head
Terence Ho 3 years ago
parent adb6ebb109
commit 8bfd218d32

@ -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.

@ -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<IFormInput> = async (data) => {
await reviewCreateMutation.mutate({
resumeId,

Loading…
Cancel
Save