Skip to content

Commit

Permalink
get comment headers 추가 (테스트용)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Sep 5, 2023
1 parent b6dbaa4 commit 1a336ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/comments.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { cookies } from 'next/headers';
import { PostType } from '@/types';
import { Comment, PostCommentData, PostRecoomentData } from '@/types/comment';

Expand All @@ -10,6 +11,7 @@ export async function getCommentsByPostTypeAndPostId(
{
credentials: 'include',
next: { revalidate: 0 },
headers: { Cookie: `accessToken=${cookies().get('accessToken')}` },
}
)
.then((res) => {
Expand Down

0 comments on commit 1a336ae

Please sign in to comment.