Skip to content

Commit

Permalink
�Fix: 과릿 1.1.10 (#349)
Browse files Browse the repository at this point in the history
* Fix: 과릿 1.1.10 (#348)
  • Loading branch information
dl-00-e8 authored Nov 24, 2023
1 parent 2f71a18 commit ae24996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public interface ContentRepository extends JpaRepository<Content, Long> {
Boolean existsByLinkUrl(String linkUrl);

// 고정된 콘텐츠들 조회
Optional<List<Content>> findAllByIsPinned(Boolean isPinned);
Optional<List<Content>> findAllByIsPinnedOrderByCreatedAtDesc(Boolean isPinned);
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public List<ContentRes> getAll() {
// Validation

// Business Logic
List<Content> contentList = contentRepository.findAllByIsPinned(Boolean.TRUE).orElse(null);
List<Content> contentList = contentRepository.findAllByIsPinnedOrderByCreatedAtDesc(Boolean.TRUE).orElse(null);

// Response
return contentList.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public List<GetSubjectMaterialRes> getSubjectMaterialList(String subject) {

case ENGLISH:
getSubjectMaterialResList.add(new GetSubjectMaterialRes(SubjectDetail.HIGH, Boolean.TRUE, getWorkbookTypeResList(Boolean.TRUE, Boolean.FALSE, Boolean.FALSE)));
getSubjectMaterialResList.add(new GetSubjectMaterialRes(SubjectDetail.MIDDLE, Boolean.TRUE, getWorkbookTypeResList(Boolean.TRUE, Boolean.FALSE, Boolean.FALSE)));
//getSubjectMaterialResList.add(new GetSubjectMaterialRes(SubjectDetail.MIDDLE, Boolean.TRUE, getWorkbookTypeResList(Boolean.TRUE, Boolean.FALSE, Boolean.FALSE)));

break;

Expand Down

0 comments on commit ae24996

Please sign in to comment.