@Transactional public void deleteConnectionRequest(User receiver, User sender) { connectionRequestRepository.deleteConnectionRequest(receiver, sender); }
@Transactional public void saveConnectionRequest(ConnectionRequest connectionRequest) { connectionRequestRepository.save(connectionRequest); }
/** Checks if user1 has requested to be connected to user2 */ public boolean hasRequested(User user1, User user2) { return connectionRequestRepository.hasRequested(user1, user2); }