Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
smirnovaae committed Apr 3, 2024
1 parent 01d44fc commit dc94931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optout/src/main/java/gov/cms/ab2d/optout/OptOutProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public OptOutInformation createOptOutInformation(String information) {
public void updateOptOut() {
try (var dbConnection = DriverManager.getConnection(parameterStore.getDbHost(), parameterStore.getDbUser(), parameterStore.getDbPassword())){
var statement = dbConnection.prepareStatement(UPDATE_STATEMENT);
logger.log("----------------- SIZE" + optOutInformationMap.size());
for (var optOutInformation : optOutInformationMap.entrySet()) {
var optOut = optOutInformation.getValue();
statement.setBoolean(1, optOut.getOptOutFlag());
Expand All @@ -108,6 +109,7 @@ public void updateOptOut() {
statement.addBatch();
// prepareInsert(optOutInformation.getValue(), statement);
}
logger.log("----------------- ST " + statement);
statement.execute();
} catch (SQLException ex) {
logger.log("There is an insertion error " + ex.getMessage());
Expand Down

0 comments on commit dc94931

Please sign in to comment.