From 01b8837f0e07860978366800d1e30c2a9f0ece9b Mon Sep 17 00:00:00 2001 From: FacerAin Date: Thu, 21 Nov 2024 13:04:49 +0900 Subject: [PATCH] feat: fix delete stomp connection --- .../org/dnd/timeet/agenda/controller/AgendaController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/dnd/timeet/agenda/controller/AgendaController.java b/src/main/java/org/dnd/timeet/agenda/controller/AgendaController.java index 67b91e8..72a63ad 100644 --- a/src/main/java/org/dnd/timeet/agenda/controller/AgendaController.java +++ b/src/main/java/org/dnd/timeet/agenda/controller/AgendaController.java @@ -93,13 +93,13 @@ public AgendaActionResponse handleAgendaAction(@DestinationVariable("meeting-id" @Operation(summary = "안건 삭제", description = "지정된 ID에 해당하는 안건을 삭제한다.") @MessageMapping("/meeting/{meeting-id}/agendas/{agenda-id}/delete") - @SendTo("/topic/meeting/{meeting-id}/delete/{agenda-id}/delete") + @SendTo("/topic/meeting/{meeting-id}/agendas/{agenda-id}/delete") public ResponseEntity deleteAgenda( @DestinationVariable("meeting-id") Long meetingId, @DestinationVariable("agenda-id") Long agendaId) { agendaService.cancelAgenda(meetingId, agendaId); - return ResponseEntity.noContent().build(); + return ResponseEntity.ok(ApiUtils.success(agendaId)); } @Operation(summary = "안건 순서 변경", description = "안건의 순서를 변경한다.")