diff --git a/backend/src/main/java/com/mapbefine/mapbefine/topic/application/TopicCommandService.java b/backend/src/main/java/com/mapbefine/mapbefine/topic/application/TopicCommandService.java index c777e9daf..9625b0210 100644 --- a/backend/src/main/java/com/mapbefine/mapbefine/topic/application/TopicCommandService.java +++ b/backend/src/main/java/com/mapbefine/mapbefine/topic/application/TopicCommandService.java @@ -136,15 +136,13 @@ private void validateCopyablePins(AuthMember member, List originalPins) { public Long merge(AuthMember member, TopicMergeRequest request) { Topic topic = convertToTopic(member, request); List originalTopics = findAllTopics(request.topics()); - validateCopyableTopics(member, originalTopics); - List originalPins = getAllPinsFromTopics(originalTopics); topic.increasePinCount(originalPins.size()); topic.updateLastPinUpdatedAt(LocalDateTime.now()); + topicRepository.save(topic); - topicRepository.flush(); pinRepository.saveAllToTopic(topic, originalPins); return topic.getId(); }