Skip to content

Commit

Permalink
Merge pull request #188 from SuffolkLITLab/fix-refresh
Browse files Browse the repository at this point in the history
Ignore tables that don't exist
  • Loading branch information
aryy-suffolk authored Dec 19, 2024
2 parents 82c747e + 1cba67b commit 29f1ac0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ public boolean updateAll(String baseUrl, FilingReviewMDEPort filingPort, CodeDat
tables);
for (String table : tables) {
Instant deleteFromTable = Instant.now(Clock.systemUTC());
if (!cd.deleteFromTable(table, courtLocation)) {
log.error("Couldn't delete from {} at {}, aborting", table, courtLocation);
cd.rollback(sp);
return false;
}

// No longer checking for false here -- see PR.
// Will ignore tables that don't exist.
cd.deleteFromTable(table, courtLocation);

updates = updates.plus(Duration.between(deleteFromTable, Instant.now(Clock.systemUTC())));
}
}
Expand Down

0 comments on commit 29f1ac0

Please sign in to comment.