Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
added default value to widget cleanup endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcanar9 committed May 19, 2022
1 parent 17b6245 commit 83a5e71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public ResponseEntity<List<Dashboard>> myDashboardByTitlePage(@RequestParam(valu
@Admin
@RequestMapping(value = "/dashboard/removeWidgetDuplicates", method = DELETE)
public ResponseEntity<String> removeWidgetDuplicates(@RequestParam(value="title", required = false)String title,
@RequestParam(value="dryRun", required = true) boolean dryRun){
@RequestParam(value="dryRun", required = true, defaultValue = "true") boolean dryRun){
String message = dashboardService.removeWidgetDuplicatesHelper(title, dryRun);
return ResponseEntity.ok().body(message);
}
Expand Down

0 comments on commit 83a5e71

Please sign in to comment.