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 =