Skip to content

Commit 6005b6a

Browse files
committed
#178: adapt param name
1 parent 37c6fa0 commit 6005b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/doubleslash/keeptime/rest/controller/WorksController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public WorksController(final WorkRepository workRepository, final ProjectReposit
4949
}
5050

5151
@GetMapping
52-
public List<WorkDTO> getWorks(@RequestParam(name = "id", required = false) final Long projectId,
52+
public List<WorkDTO> getWorks(@RequestParam(name = "projectId", required = false) final Long projectId,
5353
@RequestParam(name = "fromDate", required = false) final LocalDate fromDate,
5454
@RequestParam(name = "toDate", required = false) final LocalDate toDate) {
5555
List<Work> works = workRepository.findWorkItems(projectId, fromDate, toDate);

0 commit comments

Comments
 (0)