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

This commit is contained in:
usbharu 2023-05-20 17:19:38 +09:00
parent a41af72a8f
commit f76e904a82
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
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 { 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> = override suspend fun findByNameAndDomains(names: List<Pair<String, String>>): List<User> =