Skip to content

Commit 96a87da

Browse files
authored
메인페이지 프로젝트 조회 스킬태그 필터링 오류 수정
메인페이지 프로젝트 조회 필터링 과정에서 스킬태그에 숫자를 입력하면 값을 가져오지 못하는 현상이 발견돼 수정하였습니다.
2 parents a3bb79e + b4eeff0 commit 96a87da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/hs/kr/backend/devpals/domain/project/controller/ProjectController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ProjectController {
3535
)
3636
)
3737
public ResponseEntity<ApiResponse<ProjectListResponse>> getProjectAll(
38-
@RequestParam(required = false, defaultValue = "[]") List<Long> skillTag,
38+
@RequestParam(required = false, defaultValue = "") List<Long> skillTag,
3939
@RequestParam(defaultValue = "0") Long positionTag,
4040
@RequestParam(defaultValue = "0") Long methodType,
4141
@RequestParam(defaultValue = "false") Boolean isBeginner,

src/main/java/hs/kr/backend/devpals/domain/project/dto/ProjectAllDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public static ProjectAllDto fromEntity(ProjectEntity project, List<PositionTagRe
9494
.isDone(project.isDone())
9595
.recruitmentStartDate(project.getRecruitmentStartDate())
9696
.recruitmentEndDate(project.getRecruitmentEndDate())
97+
.skillTagIds(project.getSkillTagIds() != null ? project.getSkillTagIds() : List.of())
9798
.user(user)
9899
.methodType(methodType)
99100
.positions(positions)

0 commit comments

Comments
 (0)