diff --git a/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java b/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java index 20daef6..9a8380c 100644 --- a/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java +++ b/src/main/java/com/example/helloworldmvc/converter/ReportConverter.java @@ -9,6 +9,7 @@ public class ReportConverter { public static CommunityReport toReport(Long communityId, ReportStatus reportStatus) { return CommunityReport.builder() .reportStatus(reportStatus) + .communityId(communityId) .build(); } public static ReportResDTO.ReportRes toReportResDTO(CommunityReport communityReport) { diff --git a/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java b/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java index 625375f..3225c3c 100644 --- a/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java +++ b/src/main/java/com/example/helloworldmvc/web/controller/ReportController.java @@ -32,7 +32,7 @@ public class ReportController { }) @Parameters({ @Parameter(name = "Authorization", description = "RequestHeader - 로그인한 사용자 토큰"), - @Parameter(name = "community_id ", description = "PathVariable - 커뮤니티 글 아이디"), + @Parameter(name = "community_id", description = "PathVariable - 커뮤니티 글 아이디"), }) public ApiResponse createCommunityReport(@RequestHeader(name = "Authorization") String accessToken, @PathVariable(name = "community_id") Long targetId){