Skip to content

Commit c812904

Browse files
committed
fix: 최신 기준으로 100개 조회 ( ASC -> DESC )
1 parent 6f8b45b commit c812904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/api-server/src/chat/chat.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ChatService {
2323

2424
async getAllMessages(): Promise<ChatMessageResponse[]> {
2525
const messages = await this.chatMessageRepository.find({
26-
order: { timestamp: 'ASC' },
26+
order: { timestamp: 'DESC' },
2727
take: 100, // 최근 100개만 조회
2828
});
2929

0 commit comments

Comments
 (0)