diff --git a/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/repository/BookmarkRepository.kt b/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/repository/BookmarkRepository.kt index f9dead80..5f963adf 100644 --- a/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/repository/BookmarkRepository.kt +++ b/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/repository/BookmarkRepository.kt @@ -9,5 +9,5 @@ interface BookmarkRepository { fun findByIds(jobDescriptionId : UUID, experienceId : UUID) : Bookmark? fun save(bookmark: Bookmark) - fun findByStatusOnAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List + fun findByStatusAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List } diff --git a/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/service/BookmarkReader.kt b/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/service/BookmarkReader.kt index 836b4731..cf7b41d9 100644 --- a/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/service/BookmarkReader.kt +++ b/Domain-Module/src/main/kotlin/com/bamyanggang/domainmodule/domain/bookmark/service/BookmarkReader.kt @@ -15,8 +15,8 @@ class BookmarkReader( return bookmarkRepository.findByIds(jobDescriptionId, experienceId) } - fun readByStatusOnAndJobDescriptionId(jobDescriptionId: UUID): List { - return bookmarkRepository.findByStatusOnAndJobDescriptionId(jobDescriptionId, BookmarkStatus.ON) + fun readByStatusAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List { + return bookmarkRepository.findByStatusAndJobDescriptionId(jobDescriptionId, status) } } diff --git a/Infrastructure-Module/persistence/src/main/java/com/bamyanggang/persistence/bookmark/BookmarkRepositoryImpl.java b/Infrastructure-Module/persistence/src/main/java/com/bamyanggang/persistence/bookmark/BookmarkRepositoryImpl.java index 6ee12dfd..1770f85f 100644 --- a/Infrastructure-Module/persistence/src/main/java/com/bamyanggang/persistence/bookmark/BookmarkRepositoryImpl.java +++ b/Infrastructure-Module/persistence/src/main/java/com/bamyanggang/persistence/bookmark/BookmarkRepositoryImpl.java @@ -33,9 +33,7 @@ public void save(Bookmark bookmark) { } @Override - public List findByStatusOnAndJobDescriptionId( - UUID jobDescriptionId, - BookmarkStatus status) { + public List findByStatusAndJobDescriptionId(UUID jobDescriptionId, BookmarkStatus status) { List bookmarkJpaEntities = bookmarkJpaRepository .findByBookmarkStatusAndJobDescriptionId(status, jobDescriptionId);