From f76e904a820589343c48993bdaf19a746c1add27 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 20 May 2023 17:19:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9F=E8=A3=85=E3=81=97=E5=BF=98?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=9F=E9=83=A8=E5=88=86=E3=82=92?= =?UTF-8?q?=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/hideout/service/impl/UserService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/impl/UserService.kt b/src/main/kotlin/dev/usbharu/hideout/service/impl/UserService.kt index 1500d145..748dc49f 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/impl/UserService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/impl/UserService.kt @@ -41,7 +41,8 @@ class UserService(private val userRepository: IUserRepository, private val userA } override suspend fun findByNameAndDomain(name: String, domain: String?): User { - TODO("Not yet implemented") + return userRepository.findByNameAndDomain(name, domain ?: Config.configData.domain) + ?: throw UserNotFoundException("$name was not found.") } override suspend fun findByNameAndDomains(names: List>): List =