Skip to content

Commit 3c523ed

Browse files
fix(OUT-2917): await path params
1 parent 08e8f4c commit 3c523ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/api/comment/public/comment-public.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { PublicCommentSerializer } from '@/app/api/comment/public/comment-public
88
import { CommentsPublicFilterType } from '@/types/dto/comment.dto'
99
import { IdParams } from '@/app/api/core/types/api'
1010

11-
export const getAllCommentsPublicForTask = async (req: NextRequest, { params: { id } }: IdParams) => {
11+
export const getAllCommentsPublicForTask = async (req: NextRequest, { params }: IdParams) => {
12+
const { id } = await params
1213
const user = await authenticate(req)
1314

1415
const { parentCommentId, createdBy, limit, nextToken } = getSearchParams(req.nextUrl.searchParams, [

0 commit comments

Comments
 (0)