[resumes][refactor] Change limit of upvotes query

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

@ -16,11 +16,10 @@ export default function CommentsList({
}: CommentsListProps) {
const [tab, setTab] = useState(COMMENTS_SECTIONS[0].value);
// TODO: Render comments
const commentsQuery = trpc.useQuery(['resumes.reviews.list', { resumeId }]);
/* eslint-disable no-console */
console.log(commentsQuery);
console.log(commentsQuery.data);
/* eslint-enable no-console */
return (

@ -28,6 +28,7 @@ export const resumeReviewsRouter = createRouter().query('list', {
},
},
votes: {
take: 1,
where: {
userId,
},

Loading…
Cancel
Save