Skip to content

Commit

Permalink
add if statement to check if prefix returns hl7
Browse files Browse the repository at this point in the history
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: James Herr <[email protected]>
  • Loading branch information
3 people committed Jan 15, 2025
1 parent 0608498 commit 1bef7a8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ private void deleteOldBlobsFromToday(String testType, ZoneId timeZone) {
logger.logInfo("Checking folder: " + prefix);

for (BlobItem blobItem : blobContainerClient.listBlobsByHierarchy(prefix)) {
logger.logInfo("Deleting blob: " + blobItem.getName());
blobContainerClient.getBlobClient(blobItem.getName()).delete();
if (blobItem.getName().endsWith(".hl7")) {
logger.logInfo("Deleting blob: " + blobItem.getName());
blobContainerClient.getBlobClient(blobItem.getName()).delete();
}
}
logger.logInfo("End of checking folder: " + prefix);
}
Expand Down

0 comments on commit 1bef7a8

Please sign in to comment.