diff --git a/notification-domain/src/main/kotlin/io/github/v1servicenotification/stubs/InMemorySettingRepository.kt b/notification-domain/src/main/kotlin/io/github/v1servicenotification/stubs/InMemorySettingRepository.kt index 959242b..406be9b 100644 --- a/notification-domain/src/main/kotlin/io/github/v1servicenotification/stubs/InMemorySettingRepository.kt +++ b/notification-domain/src/main/kotlin/io/github/v1servicenotification/stubs/InMemorySettingRepository.kt @@ -32,6 +32,9 @@ class InMemorySettingRepository( return categoryIds.map { findSetting(userId, it) }.any { it != null } } + override fun queryUserIdSetting(userId: UUID): List { + return settingMap.values.filter { it.userId == userId } + } private fun findSetting(userId: UUID, categoryId: UUID): Setting? { return settingMap