Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Sep 30, 2024
1 parent 78c40a9 commit 19aed93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/item/item.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class ItemController {
): Promise<CommentDto[]> {
const token = req.cookies['accessToken']; // 쿠키에서 accessToken 읽기
let userId: string | null = null;

if (token) {
try {
const decoded = this.jwtService.verify(token, {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/comments/comment/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default function Comment(props) {
const { mutate: bestCommentLikeMutate } = useBestCommentLike(props.commentId, props.itemId);
const { mutate: commentLikeMutate } = useCommentLike(props.commentId, props.itemId);
const { mutate: deleteCommentMutate } = useDeleteComment(props.commentId, props.itemId);

const handleClick = () => {
if (props.isBest) {
bestCommentLikeMutate({ isHeart: props.isHeart });
Expand Down

0 comments on commit 19aed93

Please sign in to comment.