Skip to content

Commit

Permalink
fix: 성공 응답시 항상 success 필드가 true인 문제 해결 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfer2442 committed May 3, 2024
1 parent bb758a4 commit d7809a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/haedal/haedalweb/util/ResponseUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void sendSuccessResponse(HttpServletResponse response, SuccessCode
response.setStatus(successCode.getHttpStatus().value());

SuccessResponse successResponse = SuccessResponse.builder()
.success(true)
.success(successCode.getSuccess())
.message(successCode.getMessage())
.build();

Expand All @@ -41,4 +41,4 @@ public static void writeAsJsonResponse(HttpServletResponse response, Object data
logger.error(e.getMessage());
}
}
}
}

0 comments on commit d7809a2

Please sign in to comment.