Skip to content

Commit

Permalink
Update return type in findByDatasetId method
Browse files Browse the repository at this point in the history
- Change return type from `DashboardDrawerList` to `DashboardDrawer`
- Ensure consistency with the `dashboardDrawerService.findByDatasetId` method output
  • Loading branch information
TDeSain committed Nov 19, 2024
1 parent cbc09ac commit 02b4fbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ResponseEntity<DashboardDrawerList> findAll() {
}

@GetMapping("/{id}")
public ResponseEntity<DashboardDrawerList> findByDatasetId(@PathVariable Integer id) {
public ResponseEntity<DashboardDrawer> findByDatasetId(@PathVariable Integer id) {
return ResponseEntity.ok(dashboardDrawerService.findByDatasetId(id));
}
}

0 comments on commit 02b4fbb

Please sign in to comment.