fix: add explicit parameter name to ToolReportController
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 12s

This commit is contained in:
jade
2026-09-01 17:00:14 +09:00
parent a6eb4c4fe5
commit a85a5e8d33
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ public class ToolReportController {
} }
@GetMapping("/report-tools") @GetMapping("/report-tools")
public List<ToolSummary> tools(@RequestParam(required = false) String sourceType) { public List<ToolSummary> tools(@RequestParam(value = "sourceType", required = false) String sourceType) {
return service.findTools(sourceType); return service.findTools(sourceType);
} }

View File

@@ -27,7 +27,7 @@ public class ToolReportProxyController {
} }
@GetMapping(value = "/report/api/report-tools", produces = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/report/api/report-tools", produces = MediaType.APPLICATION_JSON_VALUE)
public List<ReportToolSummary> tools(@RequestParam(required = false) String sourceType) { public List<ReportToolSummary> tools(@RequestParam(value = "sourceType", required = false) String sourceType) {
ReportToolSummary[] tools = restClient.get() ReportToolSummary[] tools = restClient.get()
.uri(reportServiceUrl + "/api/report-tools?sourceType={sourceType}", .uri(reportServiceUrl + "/api/report-tools?sourceType={sourceType}",
sourceType == null ? "DAP_WAS_DAPMT" : sourceType) sourceType == null ? "DAP_WAS_DAPMT" : sourceType)