From cd0e9aba50ac319a068ae1f3375a0e6ce8416cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=96=91=EC=88=98=ED=98=84=28=20Soo=20Hyun=20Yang=29?= <111266513+YangSooHyun0@users.noreply.github.com> Date: Thu, 2 Nov 2023 02:05:27 +0900 Subject: [PATCH] =?UTF-8?q?SpaceWallTemporary=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=20=EC=84=B1=EB=8A=A5=20=EC=B5=9C=EC=A0=81?= =?UTF-8?q?=ED=99=94=EB=A1=9C=20=EB=B0=B0=ED=8F=AC=20=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?=EC=9D=B4=EC=8A=88=20=ED=95=B4=EA=B2=B0=20(#227)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/javajober/spaceWall/repository/SpaceWallRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/javajober/spaceWall/repository/SpaceWallRepository.java b/src/main/java/com/javajober/spaceWall/repository/SpaceWallRepository.java index dcba639..ad67f4f 100644 --- a/src/main/java/com/javajober/spaceWall/repository/SpaceWallRepository.java +++ b/src/main/java/com/javajober/spaceWall/repository/SpaceWallRepository.java @@ -16,7 +16,7 @@ public interface SpaceWallRepository extends Repository { @Modifying - @Query("DELETE FROM SpaceWall sw WHERE sw.id IN (SELECT s.id FROM SpaceWall s WHERE s.member.id = :memberId AND s.addSpace.id = :addSpaceId AND s.flag = :flag)") + @Query("DELETE FROM SpaceWall sw WHERE sw.member.id = :memberId AND sw.addSpace.id = :addSpaceId AND sw.flag = :flag") void deleteByMemberIdAndAddSpaceIdAndFlag(@Param("memberId") Long memberId, @Param("addSpaceId") Long addSpaceId, @Param("flag") FlagType flag); SpaceWall save(final SpaceWall spaceWall);