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

This commit is contained in:
usbharu 2023-04-21 20:25:50 +09:00
parent d5232c6a7f
commit a0fe4ffbd5
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> {