mirror of https://github.com/usbharu/Hideout.git
refactor: 不要な関数を削除
This commit is contained in:
parent
e7313645be
commit
0fec05fa49
|
@ -15,5 +15,4 @@ interface MuteService {
|
||||||
|
|
||||||
suspend fun getFilters(userId: Long, types: List<FilterType> = emptyList()): List<FilterQueryModel>
|
suspend fun getFilters(userId: Long, types: List<FilterType> = emptyList()): List<FilterQueryModel>
|
||||||
|
|
||||||
suspend fun deleteFilter(filterId: Long)
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ class MuteServiceImpl(
|
||||||
|
|
||||||
val filterKeywordList = keywords.map {
|
val filterKeywordList = keywords.map {
|
||||||
dev.usbharu.hideout.core.domain.model.filterkeyword.FilterKeyword(
|
dev.usbharu.hideout.core.domain.model.filterkeyword.FilterKeyword(
|
||||||
filterRepository.generateId(),
|
filterKeywordRepository.generateId(),
|
||||||
filter.id,
|
filter.id,
|
||||||
it.keyword,
|
it.keyword,
|
||||||
it.mode
|
it.mode
|
||||||
|
@ -48,8 +48,4 @@ class MuteServiceImpl(
|
||||||
override suspend fun getFilters(userId: Long, types: List<FilterType>): List<FilterQueryModel> =
|
override suspend fun getFilters(userId: Long, types: List<FilterType>): List<FilterQueryModel> =
|
||||||
filterQueryService.findByUserIdAndType(userId, types)
|
filterQueryService.findByUserIdAndType(userId, types)
|
||||||
|
|
||||||
override suspend fun deleteFilter(filterId: Long) {
|
|
||||||
filterKeywordRepository.deleteByFilterId(filterId)
|
|
||||||
filterRepository.deleteById(filterId)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue