Skip to content

Commit

Permalink
fix(conflict): conflict 주석처리
Browse files Browse the repository at this point in the history
  • Loading branch information
qlido committed Apr 9, 2024
1 parent b027e19 commit c773119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.project.bumawiki.domain.docs.domain.type.DocsType;
import com.project.bumawiki.domain.docs.domain.type.Status;
import com.project.bumawiki.domain.docs.exception.CannotChangeYourDocsException;
import com.project.bumawiki.domain.docs.exception.DocsConflictedException;
import com.project.bumawiki.domain.docs.exception.NoUpdatableDocsException;
import com.project.bumawiki.domain.docs.presentation.dto.request.DocsTitleUpdateRequestDto;
import com.project.bumawiki.domain.docs.presentation.dto.request.DocsTypeUpdateDto;
Expand Down Expand Up @@ -42,9 +41,9 @@ public Long execute(String bearer, String title, DocsUpdateRequestDto docsUpdate
Docs foundDocs = findDocsByTitle(title);
validate(authId, foundDocs);

if (foundDocs.getStatus() == Status.CONFLICTED) {
throw new DocsConflictedException();
}
// if (foundDocs.getStatus() == Status.CONFLICTED) {
// throw new DocsConflictedException();
// }

VersionDocs savedVersionDocs = saveVersionDocs(docsUpdateRequestDto, foundDocs.getId(),
foundDocs.getLastVersion());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.project.bumawiki.global.error;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public class ErrorResponse {
private final String errorLogsFormat = """
@JsonIgnore
private static final String errorLogsFormat = """
{
"status": "%s",
"code": "%s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
@RestControllerAdvice
@Slf4j
public class GlobalExceptionHandler {
@SuppressWarnings("checkstyle:RegexpSinglelineJava")
private static final String errorLogsFormat = """
{
"status": "%s",
Expand Down

0 comments on commit c773119

Please sign in to comment.