From 458b7d0dff2c59cc0606631d8c238f8ef754c632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=95=9C=EC=9D=8C?= Date: Wed, 21 Aug 2024 23:48:34 +0900 Subject: [PATCH] =?UTF-8?q?[SAMBAD-276]-=20=EC=BB=B4=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=94=BD=EC=8A=A4=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meeting/handwaving/application/HandWavingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java b/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java index f3172c7e..7f50a1fd 100644 --- a/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java +++ b/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java @@ -58,7 +58,7 @@ public void ignoreHandWaving(Long userId, Long meetingId, Long handWavingId) { } private HandWaving getHandWavingBySenderIdAndReceiverId(Long senderMemberId, Long receiverMemberId) { - return handWavingRepository.findBySenderIdAndReceiverId(senderMemberId, receiverMemberId) + return handWavingRepository.findFirstBySenderIdAndReceiverIdOrderByIdDesc(senderMemberId, receiverMemberId) .orElseThrow(NotFoundHandWavingException::new); }