refactor: 不要な関数を削除

This commit is contained in:
usbharu 2024-02-14 14:04:12 +09:00
parent e7313645be
commit 0fec05fa49
2 changed files with 1 additions and 6 deletions

View File

@ -15,5 +15,4 @@ interface MuteService {
suspend fun getFilters(userId: Long, types: List<FilterType> = emptyList()): List<FilterQueryModel>
suspend fun deleteFilter(filterId: Long)
}

View File

@ -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<FilterType>): List<FilterQueryModel> =
filterQueryService.findByUserIdAndType(userId, types)
override suspend fun deleteFilter(filterId: Long) {
filterKeywordRepository.deleteByFilterId(filterId)
filterRepository.deleteById(filterId)
}
}