Skip to content

Commit

Permalink
fix: NoticeService#convertBaseUrl 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zbqmgldjfh committed Mar 18, 2023
1 parent c81b5d1 commit 391db2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/kustacks/kuring/kuapi/CategoryName.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public enum CategoryName {
this.korName = korName;
}

public boolean isSameName(String name) {
return this.name.equals(name);
}

public boolean isSameShortName(String shortName) {
return this.shortName.equals(shortName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ private String convertShortNameIntoLongName(String typeShortName) {
.orElseThrow(CategoryNotFoundException::new);
}

private String convertBaseUrl(String type) {
return CategoryName.LIBRARY.isSameShortName(type) ? libraryBaseUrl : normalBaseUrl;
private String convertBaseUrl(String categoryName) {
return CategoryName.LIBRARY.isSameName(categoryName) ? libraryBaseUrl : normalBaseUrl;
}

private List<Notice> getNoticesBySubjectOrCategory(String[] keywords) {
Expand Down

0 comments on commit 391db2e

Please sign in to comment.