Skip to content

Commit

Permalink
[refactor] corsConfig 수정 및 인기청원게시물 좋아요 1개 이상인 것만 조회하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed Sep 23, 2024
1 parent b3bc923 commit 3d89da0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/ussum/homepage/global/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public CorsFilter corsFilter() {
config.addAllowedOrigin("https://stu.ssu.ac.kr");
config.addAllowedOrigin("https://ssu-student-union.github.io");
config.addAllowedOrigin("https://homepage-frontend-dun.vercel.app");
config.addAllowedOrigin("https://homepage-frontend-psi.vercel.app");
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**",config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public Page<SimplePostResponse> findPostDtoListByBoardCode(String boardCode, Pag
.and(timeCondition)
.and(postEntity.category.ne(Category.COMPLETED)))
.groupBy(postEntity)
.having(postReactionEntity.countDistinct().goe(1L))
.orderBy(orderSpecifiers)
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Expand Down

0 comments on commit 3d89da0

Please sign in to comment.