Remove Subtasks from TaskDashboard
This commit is contained in:
parent
d7b2683ffc
commit
682d88e183
@ -72,7 +72,11 @@ public class TaskController {
|
||||
return ResponseEntity.status(404).body(new SimpleStatusResponse("failed"));
|
||||
}
|
||||
|
||||
return ResponseEntity.ok(taskgroupPermissionResult.getResult().getTasks().stream().map(TaskEntityInfo::new));
|
||||
List<Task> tasks = new ArrayList<>();
|
||||
for(Task task : taskgroupPermissionResult.getResult().getTasks()) {
|
||||
if(task.getParent() == null) tasks.add(task);
|
||||
}
|
||||
return ResponseEntity.ok(tasks.stream().map(TaskEntityInfo::new));
|
||||
}
|
||||
|
||||
@PutMapping("/tasks/{taskgroupID}")
|
||||
|
Loading…
Reference in New Issue
Block a user