diff --git a/notification-domain/src/main/kotlin/io/github/v1servicenotification/setting/spi/SettingCategorySpi.kt b/notification-domain/src/main/kotlin/io/github/v1servicenotification/setting/spi/SettingCategorySpi.kt index 91ebbab..7fef125 100644 --- a/notification-domain/src/main/kotlin/io/github/v1servicenotification/setting/spi/SettingCategorySpi.kt +++ b/notification-domain/src/main/kotlin/io/github/v1servicenotification/setting/spi/SettingCategorySpi.kt @@ -1,6 +1,5 @@ package io.github.v1servicenotification.setting.spi -import io.github.v1servicenotification.category.Category import java.util.* interface SettingCategorySpi { diff --git a/notification-infrastructure/src/main/kotlin/io/github/v1servicenotification/domain/setting/domain/repository/CustomSettingRepositoryImpl.kt b/notification-infrastructure/src/main/kotlin/io/github/v1servicenotification/domain/setting/domain/repository/CustomSettingRepositoryImpl.kt index ba16d9f..f91ea1d 100644 --- a/notification-infrastructure/src/main/kotlin/io/github/v1servicenotification/domain/setting/domain/repository/CustomSettingRepositoryImpl.kt +++ b/notification-infrastructure/src/main/kotlin/io/github/v1servicenotification/domain/setting/domain/repository/CustomSettingRepositoryImpl.kt @@ -35,18 +35,6 @@ class CustomSettingRepositoryImpl( } } - private fun setSettingIsActivate(categoryIds: List, userId: UUID, isActivated: Boolean) { - categoryIds.forEach { - jpaQueryFactory - .update(settingEntity) - .set(settingEntity.isActivated, isActivated) - .where( - settingEntity.settingId.categoryEntity.id.eq(it) - .and(settingEntity.settingId.userId.eq(userId)) - ) - } - } - override fun settingExist(categoryIds: List, userId: UUID): Boolean { return getSettingIdList(categoryIds, userId).map { settingId -> settingRepository.existsById(settingId)