forked from mtusi2026/mtusi2026lab4
phase 2
This commit is contained in:
@@ -127,4 +127,9 @@ public class ChatService {
|
||||
private CursorCodec.PageBoundary boundaryOf(Chat chat) {
|
||||
return new CursorCodec.PageBoundary(chat.getCreatedAt(), chat.getId());
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public boolean existsByIdAndMembersId(UUID chatId, UUID userId){
|
||||
return chatRepository.existsByIdAndMembersId(chatId, userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user