From 023ce65860352cefaf2b73abade8e954bb840cc0 Mon Sep 17 00:00:00 2001 From: 101 Date: Sat, 9 Mar 2024 22:03:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/content/service/EditContentTableTitle.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/content/service/EditContentTableTitle.java b/src/main/java/com/example/daemawiki/domain/content/service/EditContentTableTitle.java index 2a209eeb..210cd301 100644 --- a/src/main/java/com/example/daemawiki/domain/content/service/EditContentTableTitle.java +++ b/src/main/java/com/example/daemawiki/domain/content/service/EditContentTableTitle.java @@ -51,11 +51,8 @@ private DefaultDocument updateDocument(DefaultDocument document, EditContentTabl } private Mono createRevision(DefaultDocument document) { - return revisionComponent.saveHistory(SaveRevisionHistoryRequest.builder() - .type(RevisionType.UPDATE) - .documentId(document.getId()) - .title(document.getTitle()) - .build()); + return revisionComponent.saveHistory(SaveRevisionHistoryRequest + .create(RevisionType.UPDATE, document.getId(), document.getTitle())); } }