Skip to content

Commit

Permalink
FIX delete attachments generated on Application
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Aug 4, 2022
1 parent 1f9a1c9 commit 8806467
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ public Long eliminaAllegatiGeneratiSullaDomanda(Session session, String query, S
final long totalNumItems = applications.getTotalNumItems();
long result = 0;
int skipTo = 0;
while (applications.getHasMoreItems()) {
do {
applications = applications.skipTo(skipTo).getPage(maxItemsPerPage);
for (QueryResult document : applications) {
try {
Expand All @@ -1428,7 +1428,7 @@ public Long eliminaAllegatiGeneratiSullaDomanda(Session session, String query, S
}
}
skipTo = skipTo + maxItemsPerPage;
}
} while (applications.getHasMoreItems());
return result;
}

Expand Down

0 comments on commit 8806467

Please sign in to comment.