Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
폰코딩
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p authored Mar 4, 2024
1 parent ba4e0f5 commit 410648a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public CreateDocument(DocumentFacade documentFacade, UserFacade userFacade, Revi
public Mono<Void> execute(SaveDocumentRequest request) {
return userFacade.currentUser()
.map(user -> createDocumentFacade.execute(request, user))
.flatMap(document -> Mono.when(documentFacade.saveDocument(document), revisionComponent.saveHistory(SaveRevisionHistoryRequest.builder()
.flatMap(document -> documentFacade.saveDocument(document)
.then(revisionComponent.saveHistory(SaveRevisionHistoryRequest.builder()
.type(RevisionType.CREATE)
.documentId(document.getId())
.title(document.getTitle())
Expand Down

0 comments on commit 410648a

Please sign in to comment.