Skip to content

Commit c628d1d

Browse files
committed
feat: 게시글 정렬방식 설정
1 parent 2f51e28 commit c628d1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/routes/Articles/Service.ts

+5
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ export const getArticleComments = async (req: Request, res: Response) => {
168168
where: {
169169
articleId,
170170
},
171+
orderBy: [
172+
{
173+
createdAt: 'asc',
174+
},
175+
],
171176
});
172177
});
173178

0 commit comments

Comments
 (0)