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

Commit

Permalink
code formatting and added call to update updatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
dcanar9 committed May 5, 2022
1 parent 90775e6 commit 393cb38
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ public String removeWidgetDuplicates(String title, boolean dryRun) {

if(!dryRun){
dashboard.setWidgets(nonDuplicates);
dashboard.setUpdatedAt(System.currentTimeMillis());
dashboardRepository.save(dashboard);
}

Expand All @@ -1039,12 +1040,18 @@ public String removeWidgetDuplicates(String title, boolean dryRun) {
}

if(StringUtils.isEmpty(title)){
if(dryRun){return "DRY_RUN: All Dashboard widgets cleaned";}
else {return "All Dashboard widgets cleaned";}
if(dryRun){
return "DRY_RUN: All Dashboard widgets cleaned";
} else{
return "All Dashboard widgets cleaned";
}
}
else {
if(dryRun){return "DRY_RUN: Cleaned widgets for dashboard " + title;}
else{return "Cleaned widgets for dashboard " + title;}
if(dryRun){
return "DRY_RUN: Cleaned widgets for dashboard " + title;
} else{
return "Cleaned widgets for dashboard " + title;
}
}
}
}

0 comments on commit 393cb38

Please sign in to comment.