Skip to content

Commit

Permalink
!bug: TT-237 테마 아래에 모든 메이저 버전이 생성됨
Browse files Browse the repository at this point in the history
findMajorScriptByThemeId 에서 themeId를 where조건에 걸어줌
  • Loading branch information
snacktime81 committed Jul 12, 2024
1 parent cd7ba44 commit ac3fe67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface ScriptRepository extends JpaRepository<ScriptEntity, Long> {
@Query("select s from ScriptEntity s " +
"join fetch VersionEntity v " +
"on s.version.majorVersion = v.majorVersion and s.version.minorVersion = v.minorVersion and s.version.ThemeEntity.themeId = v.ThemeEntity.themeId " +
"where v.minorVersion = 0")
"where v.ThemeEntity.themeId = :themeid and v.minorVersion = 0")
List<ScriptEntity> findMajorScriptByThemeId(Long themeId);

@Query("select s from ScriptEntity s " +
Expand Down

0 comments on commit ac3fe67

Please sign in to comment.