Skip to content

Commit

Permalink
TaskRestController bugfix: adding @RequestParam(name = "id") to task …
Browse files Browse the repository at this point in the history
…path
  • Loading branch information
fnkbsi committed Dec 6, 2024
1 parent 47b5784 commit b62ce90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.springframework.web.bind.annotation.RestController;

import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @author fnkbsi
Expand Down Expand Up @@ -118,7 +119,7 @@ public ApiTaskList clearFinished() {
)
@GetMapping(value = "task")
@ResponseBody
public ApiTaskInfo getTaskDetails(@Valid Integer taskId) {
public ApiTaskInfo getTaskDetails(@RequestParam(name="id") @Valid Integer taskId) {

Check failure on line 122 in src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] reported by reviewdog 🐶 '=' is not followed by whitespace. Raw Output: /github/workspace/./src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java:122:57: error: '=' is not followed by whitespace. (com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck)

Check failure on line 122 in src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] reported by reviewdog 🐶 '=' is not preceded with whitespace. Raw Output: /github/workspace/./src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java:122:57: error: '=' is not preceded with whitespace. (com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck)
ApiTaskInfo taskInfo = new ApiTaskInfo(taskId, taskStore.get(taskId));
return taskInfo;
}
Expand Down

0 comments on commit b62ce90

Please sign in to comment.