diff --git a/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteService.kt b/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteService.kt index 8fb859f5..25c89857 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteService.kt @@ -15,5 +15,4 @@ interface MuteService { suspend fun getFilters(userId: Long, types: List = emptyList()): List - suspend fun deleteFilter(filterId: Long) } diff --git a/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteServiceImpl.kt b/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteServiceImpl.kt index 8489ee58..73fd6f1a 100644 --- a/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteServiceImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/core/service/filter/MuteServiceImpl.kt @@ -32,7 +32,7 @@ class MuteServiceImpl( val filterKeywordList = keywords.map { dev.usbharu.hideout.core.domain.model.filterkeyword.FilterKeyword( - filterRepository.generateId(), + filterKeywordRepository.generateId(), filter.id, it.keyword, it.mode @@ -48,8 +48,4 @@ class MuteServiceImpl( override suspend fun getFilters(userId: Long, types: List): List = filterQueryService.findByUserIdAndType(userId, types) - override suspend fun deleteFilter(filterId: Long) { - filterKeywordRepository.deleteByFilterId(filterId) - filterRepository.deleteById(filterId) - } }