Skip to content

Commit

Permalink
delete: 주석 처리 메소드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan531 committed Dec 13, 2024
1 parent e62f596 commit 0433a9f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public Document findById(final long documentId) {
.orElseThrow(() -> new DocumentException(INVALID_DOCUMENT));
}

// public List<Document> findAllByTeamIdAndAccessiblePosition(long teamId, Position accessiblePosition) {
// return documentRepository.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition);
// }

public List<Document> findAllByTeamId(long teamId) {
return documentRepository.findAllByTeamId(teamId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
public interface DocumentRepository extends JpaRepository<Document, Long> {
List<Document> 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<Document> findAllByTeamIdAndAccessiblePosition(long teamId, Position position);

List<Document> findAllByTeamId(long teamId);

List<Document> findAllByTeamIdAndFolderIdOrderByCreatedAtDesc(long teamId, Long folderId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Document> documents = documentFinder.findAllByTeamIdAndAccessiblePosition(teamId, accessiblePosition);
// return DocumentsGetResponse.from(documents);
// }

private void validateFolder(final Long folderId, final long teamId) {
if (folderId == null) {
return;
Expand Down

0 comments on commit 0433a9f

Please sign in to comment.