From e123df35d4d6d1e166453de537b61b20627ab0a3 Mon Sep 17 00:00:00 2001 From: sshinylee Date: Mon, 24 Jun 2024 12:57:44 +0900 Subject: [PATCH] fix: Edit response --- .../algofi_core/game/session/GameSessionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algofi-core/src/main/java/gooroommoon/algofi_core/game/session/GameSessionService.java b/algofi-core/src/main/java/gooroommoon/algofi_core/game/session/GameSessionService.java index 0277a12..eac48cd 100644 --- a/algofi-core/src/main/java/gooroommoon/algofi_core/game/session/GameSessionService.java +++ b/algofi-core/src/main/java/gooroommoon/algofi_core/game/session/GameSessionService.java @@ -169,7 +169,7 @@ public void submitCode(String playerId, GameCodeRequest request) { .toEntity(SubmitResultResponse.class) .subscribe(response -> { String message = response.getBody().getMessage(); - messagingTemplate.convertAndSendToUser(playerId, "/queue/game/result", message); + messagingTemplate.convertAndSendToUser(playerId, "/queue/game/result", new SubmitResultResponse(message)); if(message.equals("맞았습니다.")) { closeGame(session, playerId); } else {