fix: ReactionRepositoryImplのfindByIdに失敗する問題を修正

This commit is contained in:
usbharu 2024-01-28 17:18:07 +09:00
parent d949591ab6
commit 74cf38e164
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class ReactionRepositoryImpl(
}
override suspend fun findById(id: Long): Reaction? = query {
return@query Reactions.select { Reactions.id eq id }.singleOrNull()?.toReaction()
return@query Reactions.leftJoin(CustomEmojis).select { Reactions.id eq id }.singleOrNull()?.toReaction()
}
override suspend fun findByPostId(postId: Long): List<Reaction> = query {