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

This commit is contained in:
2023-04-21 20:25:50 +09:00
parent 458d303ae8
commit 547acd802e
@@ -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> {