Skip to content

Commit

Permalink
Feat : chat 가져올때 pagination 코드 미리 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
namewhat99 committed Jan 14, 2024
1 parent fafefd4 commit de92ad7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BE/src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ export class ChatService {
},
relations: ['chats', 'userUser', 'writerUser'],
});
/*return await this.chatRoomRepository
.createQueryBuilder('chat_room')
.innerJoinAndSelect('chat_room.chats', 'chat_info')
.innerJoinAndSelect('chat_room.writerUser', 'writer')
.innerJoinAndSelect('chat_room.userUser', 'user')
.where('chat_room.id = :roomId', { roomId: roomId })
.andWhere('chat_info.id < 450374')
.limit(5)
.getOne();*/
}

async findRoomById(roomId: number, userId: string) {
Expand Down

0 comments on commit de92ad7

Please sign in to comment.