Skip to content

Commit

Permalink
!hotfix: comment 글자수 제한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daeun084 committed Nov 19, 2024
1 parent b240dc2 commit 3c8454c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Ability extends BaseEntity {
@Enumerated(EnumType.STRING)
private Keyword keyword;

@Column(nullable = false, length = 200)
@Column(nullable = false, length = 300)
private String content;

@ManyToOne
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Analysis extends BaseEntity {
@Column(nullable = false, length = 500)
private String content;

@Column(nullable = false, length = 200)
@Column(nullable = false, length = 300)
private String comment;

@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ private void validAnalysisContentLength(String content) {
}

private void validAnalysisCommentLength(String comment) {
if (comment.isEmpty() || comment.length() > 200)
if (comment.isEmpty() || comment.length() > 300)
throw new AnalysisException(AnalysisErrorStatus.OVERFLOW_ANALYSIS_COMMENT);
}

private void validAnalysisKeywordContentLength(Map<String, String> keywordList) {
for (Map.Entry<String, String> entry : keywordList.entrySet()) {
String keyContent = entry.getValue();

if (keyContent.isEmpty() || keyContent.length() > 200)
if (keyContent.isEmpty() || keyContent.length() > 300)
throw new AnalysisException(AnalysisErrorStatus.OVERFLOW_ANALYSIS_KEYWORD_CONTENT);
}
}
Expand Down

0 comments on commit 3c8454c

Please sign in to comment.