feat: ユーザーをurlで一括取得を実装

This commit is contained in:
usbharu 2023-04-21 20:25:50 +09:00
parent 458d303ae8
commit 547acd802e
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ class UserRepository(private val database: Database) : IUserRepository {
}
override suspend fun findByUrls(urls: List<String>): List<UserEntity> {
TODO("Not yet implemented")
return query {
Users.select { Users.url inList urls }.map { it.toUserEntity() }
}
}
override suspend fun findFollowersById(id: Long): List<UserEntity> {