Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jan 21, 2025
1 parent 905b3c1 commit 702a057
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public Connection getConnection(String tenantIdentifier) throws SQLException {
protected Connection getConnection(String tenantIdentifier, Connection connection) throws SQLException {
String schema = convertTenantIdToSchemaName(tenantIdentifier);
logger.debug("Setting schema to {}", schema);
System.out.println("Schema " + schema);
try (Statement sqlStatement = connection.createStatement()) {
sqlStatement.execute(String.format("SET SCHEMA '%s';", schema));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ Map<Integer, Integer> generateQuarters() {
return quarters;
}

@Scheduled(cron = "0 59 23 L * ?") // Cron expression for 23:59:00 on the
// last day of every month
@Scheduled(cron = "0 59 23 L * ?") // Cron expression for 23:59:00 on the last day of every month
public void scheduledGenerationQuarters() {
Map<Integer, Integer> quarters = generateQuarters();
YearMonth currentYearMonth = getCurrentYearMonth();
Expand Down

0 comments on commit 702a057

Please sign in to comment.