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

Commit

Permalink
Merge pull request #275 from dcanar9/master
Browse files Browse the repository at this point in the history
Changed widget cleanup loop condition
  • Loading branch information
nameisaravind authored May 11, 2022
2 parents 434f545 + b864e6f commit ce4b6b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>3.4.36</version>
<version>3.4.37</version>
<description>Hygieia Rest API Layer</description>
<url>https://github.com/Hygieia/api</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1013,9 +1013,9 @@ public String removeWidgetDuplicatesHelper(String title, boolean dryRun){
Pageable pageable = new PageRequest(0, settings.getBatchSize());
Page<Dashboard> page = findDashboardsByPage("", pageable);

while(page.hasNext()){
pageable = pageable.next();
while(page.hasContent()){
removeWidgetDuplicates(page.getContent(), dryRun);
pageable = pageable.next();
page = findDashboardsByPage("", pageable);
}
}
Expand Down

0 comments on commit ce4b6b9

Please sign in to comment.