Skip to content

Commit

Permalink
[feat] #109 불필요 함수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo0419 committed Jun 9, 2024
1 parent 422b79e commit e3d2f5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.telepigeon.server.domain.Room;
import com.telepigeon.server.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Optional;
Expand All @@ -17,7 +16,4 @@ public interface ProfileRepository extends JpaRepository<Profile, Long> {

boolean existsByUserAndRoom(User user, Room room);
List<Profile> findAllByUserId(Long userId);

@Query("select count(p) from Profile p where p.room = :room and p.isDeleted = :isDeleted")
int countByRoomAndIsDeleted(Room room, boolean isDeleted);
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,4 @@ public List<Profile> findByUserId(final long userId) {
public List<Profile> findAll() {
return profileRepository.findAll();
}

public int countByRoomAndIsDeleted(final Room room, final boolean isDeleted) {
return profileRepository.countByRoomAndIsDeleted(room, isDeleted);
}

}

0 comments on commit e3d2f5e

Please sign in to comment.