Skip to content

Commit

Permalink
[refactor] 변경으로 인한 수정 반영 (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Oct 6, 2024
1 parent cb16db8 commit 3a3da78
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.sopt.app.domain.entity.fortune.QFortuneWord;
import org.sopt.app.domain.entity.fortune.QUserFortune;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@RequiredArgsConstructor
Expand All @@ -26,7 +25,7 @@ public Optional<FortuneCard> findByRelatedUserId(final Long userId) {
queryFactory.select(fortuneCard)
.from(userFortune)
.join(fortuneWord)
.on(userFortune.fortuneId.eq(fortuneWord.id))
.on(userFortune.fortuneWordId.eq(fortuneWord.id))
.join(fortuneCard)
.on(fortuneWord.fortuneCardId.eq(fortuneCard.id))
.where(userFortune.userId.eq(userId))
Expand Down

0 comments on commit 3a3da78

Please sign in to comment.