Skip to content

Commit

Permalink
chore(docs): 버전 정보 조회시 최근 문서 버전 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhboy committed Apr 25, 2024
1 parent b9fa20e commit a8bd834
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,15 @@ public MergeConflictDataResponseDto getMergeConflict(String title, String conten
LinkedList<DiffMatchPatch.Diff> diff1 = DocsUtil.getDiff(originalDocsContent, firstDocsContent);
LinkedList<DiffMatchPatch.Diff> diff2 = DocsUtil.getDiff(originalDocsContent, contents);

VersionDocs lastVersion = docsReader.findLastVersion(docs);

return new MergeConflictDataResponseDto(
firstDocsContent,
contents,
originalDocsContent,
diff1,
diff2
diff2,
lastVersion.getVersion()
);
}

Expand Down

0 comments on commit a8bd834

Please sign in to comment.