feat: 実装し忘れていた部分を実装

This commit is contained in:
usbharu 2023-05-20 17:19:38 +09:00
parent c40576b3c7
commit efd85112ca
1 changed files with 2 additions and 1 deletions

View File

@ -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<Pair<String, String>>): List<User> =