Skip to content

Commit

Permalink
refactor(DocumentFinder): 메소드명 변경
Browse files Browse the repository at this point in the history
메소드 명에 teamId 추가
  • Loading branch information
Chan531 committed Nov 26, 2024
1 parent ae3cf77 commit e2bf6b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class DocumentFinder {

private final DocumentRepository documentRepository;

public List<Document> findAllById(final List<Long> documentIds, final long teamId) {
public List<Document> findAllByIdAndTeamId(final List<Long> documentIds, final long teamId) {
return documentIds.stream()
.map(id -> findByIdAndTeamId(id, teamId))
.toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public DocumentsGetResponse get(final long memberId, final long teamId, final Lo
@Transactional
public void delete(final long memberId, final long teamId, final List<Long> documentIds) {
memberTeamManagerFinder.findByMemberIdAndTeamIdOrElseThrow(memberId, teamId);
List<Document> documents = documentFinder.findAllById(documentIds, teamId);
List<Document> documents = documentFinder.findAllByIdAndTeamId(documentIds, teamId);
deletedDocumentAdapter.save(documents);
documentDeleter.deleteAll(documents);
}
Expand Down

0 comments on commit e2bf6b7

Please sign in to comment.