diff --git a/src/main/java/org/sopt/app/interfaces/postgres/fortune/FortuneCardRepositoryImpl.java b/src/main/java/org/sopt/app/interfaces/postgres/fortune/FortuneCardRepositoryImpl.java index 4679e22e..dd2ae976 100644 --- a/src/main/java/org/sopt/app/interfaces/postgres/fortune/FortuneCardRepositoryImpl.java +++ b/src/main/java/org/sopt/app/interfaces/postgres/fortune/FortuneCardRepositoryImpl.java @@ -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 @@ -26,7 +25,7 @@ public Optional 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))