diff --git a/src/main/java/balancetalk/game/application/TempGameService.java b/src/main/java/balancetalk/game/application/TempGameService.java index 1cd5f3963..1532dc74a 100644 --- a/src/main/java/balancetalk/game/application/TempGameService.java +++ b/src/main/java/balancetalk/game/application/TempGameService.java @@ -43,6 +43,12 @@ public void createTempGame(CreateTempGameSetRequest request, ApiMember apiMember Member member = apiMember.toMember(memberRepository); List tempGames = request.getTempGames(); + + if (request.getTempGames() == null || request.getTempGames().isEmpty()) { + TempGameSet tempGameSet = request.toEntity(member); + tempGameSetRepository.save(tempGameSet); + return; + } validateFileIds(tempGames); // 파일이 DB에 존재하는지 검사 List newTempGames = tempGames.stream()