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

This commit is contained in:
usbharu 2024-01-28 17:18:07 +09:00
parent 5b1f9353b4
commit acd2dded30
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 { 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 { override suspend fun findByPostId(postId: Long): List<Reaction> = query {