From 0fec05fa494dd54c7831cb05fd123b6c6cee1193 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:04:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=8D=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E9=96=A2=E6=95=B0=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/core/service/filter/MuteService.kt | 1 - .../usbharu/hideout/core/service/filter/MuteServiceImpl.kt | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) 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) - } }