mirror of https://github.com/usbharu/Hideout.git
feat: ユーザーをurlで一括取得を実装
This commit is contained in:
parent
d5232c6a7f
commit
a0fe4ffbd5
|
@ -112,7 +112,9 @@ class UserRepository(private val database: Database) : IUserRepository {
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun findByUrls(urls: List<String>): List<UserEntity> {
|
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> {
|
override suspend fun findFollowersById(id: Long): List<UserEntity> {
|
||||||
|
|
Loading…
Reference in New Issue