From 6143b67991288dcb9c9b0fcceda25eb3d328a467 Mon Sep 17 00:00:00 2001 From: jschoi-96 Date: Fri, 29 Nov 2024 02:46:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=84=EC=8B=9C=EC=A0=80=EC=9E=A5=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=8B=9C=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8,=20=EC=84=9C=EB=B8=8C=ED=83=9C=EA=B7=B8=20=EA=B0=92?= =?UTF-8?q?=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/balancetalk/game/application/TempGameService.java | 2 +- src/main/java/balancetalk/game/domain/TempGameSet.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/balancetalk/game/application/TempGameService.java b/src/main/java/balancetalk/game/application/TempGameService.java index 73be235d8..ff706787d 100644 --- a/src/main/java/balancetalk/game/application/TempGameService.java +++ b/src/main/java/balancetalk/game/application/TempGameService.java @@ -50,7 +50,7 @@ public void createTempGame(CreateTempGameSetRequest request, ApiMember apiMember if (member.hasTempGameSet()) { // 기존 임시저장이 존재하는 경우 TempGameSet existGame = member.getTempGameSet(); - existGame.updateTempGameSet(request.getTitle(), newTempGames); + existGame.updateTempGameSet(request.getTitle(), request.getSubTag(), mainTag, newTempGames); processTempGameFiles(tempGames, existGame.getTempGames()); return; } diff --git a/src/main/java/balancetalk/game/domain/TempGameSet.java b/src/main/java/balancetalk/game/domain/TempGameSet.java index 589ab86d3..356ebf467 100644 --- a/src/main/java/balancetalk/game/domain/TempGameSet.java +++ b/src/main/java/balancetalk/game/domain/TempGameSet.java @@ -62,8 +62,10 @@ public void addGames(List tempGames) { }); } - public void updateTempGameSet(String title, List newTempGames) { + public void updateTempGameSet(String title, String subTag, MainTag mainTag, List newTempGames) { this.title = title; + this.subTag = subTag; + this.mainTag = mainTag; IntStream.range(0, this.tempGames.size()).forEach(i -> { TempGame existingGame = this.tempGames.get(i); TempGame newGame = newTempGames.get(i);