Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class OperationRequestDto {

Integer deleteLength;

@NotNull(message = "position은 null일 수 없습니다.")
// @NotNull(message = "position은 null일 수 없습니다.")
Long position;

Long baseVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public void processOperation(OperationRequestDto operation) {
template.convertAndSend("/sub/edit/" + docId, docContent);
return;
}

// 추후 수정
if(opPosition == null) throw new IllegalStateException("opPosition은 null일 수 없습니다.");

// operation 충돌 시 변환 처리
// - operation의 baseVersion과 서버가 추적하는 version을 비교
Expand Down