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);