From cfa972c27dc1b22a8fd97cc0295c046eea923ac2 Mon Sep 17 00:00:00 2001 From: xhaktmchl Date: Thu, 9 Mar 2023 17:44:05 +0900 Subject: [PATCH] =?UTF-8?q?#9=20fix:=20=EC=9C=A0=EC=A0=80=20=EC=B0=A8?= =?UTF-8?q?=EB=8B=A8API-=EA=B4=80=EB=A0=A8=20=EB=B3=B4=EB=93=9C=EC=9D=98?= =?UTF-8?q?=20=EB=A9=A4=EB=B2=84=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=EC=9C=A0=EC=A0=80ID=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yogit/server/block/service/BlockServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/yogit/server/block/service/BlockServiceImpl.java b/server/src/main/java/com/yogit/server/block/service/BlockServiceImpl.java index 05919e5..3b3382f 100644 --- a/server/src/main/java/com/yogit/server/block/service/BlockServiceImpl.java +++ b/server/src/main/java/com/yogit/server/block/service/BlockServiceImpl.java @@ -66,7 +66,7 @@ public ApplicationResponse createBlock(CreateBlockReq dto){ if(!boardUsers.isEmpty()){ for(BoardUser bu: boardUsers){ if(bu.getUser().getId() == blockingUser.getId() && bu.getStatus().equals(BaseStatus.ACTIVE)){ - boardUserRepository.deleteById(blockingUser.getId()); + boardUserRepository.deleteById(bu.getId()); } } } @@ -83,7 +83,7 @@ public ApplicationResponse createBlock(CreateBlockReq dto){ if(!boardUsers.isEmpty()){ for(BoardUser bu: boardUsers){ if(bu.getUser().getId() == blockedUser.getId() && bu.getStatus().equals(BaseStatus.ACTIVE)){ - boardUserRepository.deleteById(blockedUser.getId()); + boardUserRepository.deleteById(bu.getId()); } } }