diff --git a/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java b/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java index acf7a7d..772db6d 100644 --- a/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java +++ b/src/main/java/com/tiki/server/document/adapter/DocumentFinder.java @@ -28,10 +28,6 @@ public Document findById(final long documentId) { .orElseThrow(() -> new DocumentException(INVALID_DOCUMENT)); } - // public List findAllByTeamIdAndAccessiblePosition(long teamId, Position accessiblePosition) { - // return documentRepository.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition); - // } - public List findAllByTeamId(long teamId) { return documentRepository.findAllByTeamId(teamId); } diff --git a/src/main/java/com/tiki/server/document/repository/DocumentRepository.java b/src/main/java/com/tiki/server/document/repository/DocumentRepository.java index 97cb8a8..8013da3 100644 --- a/src/main/java/com/tiki/server/document/repository/DocumentRepository.java +++ b/src/main/java/com/tiki/server/document/repository/DocumentRepository.java @@ -12,10 +12,6 @@ public interface DocumentRepository extends JpaRepository { List findAllByFolderId(long folderId); - // @Query("select d from Document d join fetch d.timeBlock t " - // + "where t.team.id = :teamId and t.accessiblePosition = :position order by d.createdAt asc") - // List findAllByTeamIdAndAccessiblePosition(long teamId, Position position); - List findAllByTeamId(long teamId); List findAllByTeamIdAndFolderIdOrderByCreatedAtDesc(long teamId, Long folderId); diff --git a/src/main/java/com/tiki/server/document/service/DocumentService.java b/src/main/java/com/tiki/server/document/service/DocumentService.java index 3781c20..9c1020e 100644 --- a/src/main/java/com/tiki/server/document/service/DocumentService.java +++ b/src/main/java/com/tiki/server/document/service/DocumentService.java @@ -100,11 +100,6 @@ public DeletedDocumentsGetResponse getTrash(final long memberId, final long team return DeletedDocumentsGetResponse.from(deletedDocuments); } - // private DocumentsGetResponse getAllDocumentsByType(final long teamId, final Position accessiblePosition) { - // List documents = documentFinder.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition); - // return DocumentsGetResponse.from(documents); - // } - private void validateFolder(final Long folderId, final long teamId) { if (folderId == null) { return;