From ac3fe67411fbdc94c07ac6bd9ce14c8ce5b99817 Mon Sep 17 00:00:00 2001 From: snacktime Date: Fri, 12 Jul 2024 17:20:24 +0900 Subject: [PATCH] =?UTF-8?q?!bug:=20TT-237=20=ED=85=8C=EB=A7=88=20=EC=95=84?= =?UTF-8?q?=EB=9E=98=EC=97=90=20=EB=AA=A8=EB=93=A0=20=EB=A9=94=EC=9D=B4?= =?UTF-8?q?=EC=A0=80=20=EB=B2=84=EC=A0=84=EC=9D=B4=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit findMajorScriptByThemeId 에서 themeId를 where조건에 걸어줌 --- .../twentythree/peech/script/repository/ScriptRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/twentythree/peech/script/repository/ScriptRepository.java b/src/main/java/com/twentythree/peech/script/repository/ScriptRepository.java index 61107e7c..17288d5f 100644 --- a/src/main/java/com/twentythree/peech/script/repository/ScriptRepository.java +++ b/src/main/java/com/twentythree/peech/script/repository/ScriptRepository.java @@ -14,7 +14,7 @@ public interface ScriptRepository extends JpaRepository { @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 findMajorScriptByThemeId(Long themeId); @Query("select s from ScriptEntity s " +