Updated libraries
All checks were successful
Locusworks Team/eight-track/pipeline/head This commit looks good

This commit is contained in:
2021-09-14 23:17:06 -05:00
parent 599052a235
commit a24810a53a
2 changed files with 52 additions and 31 deletions

View File

@ -75,18 +75,13 @@ public class EightTrackDataSource {
@Bean
public DataSource dataSource() throws Exception {
logger.debug("Getting datasource");
return getDataSource(confService.getDatabaseUsername(),
confService.getDatabasePassword(),
"/eighttrack");
return getDataSource(confService.getDatabaseUsername(), confService.getDatabasePassword(), "/eighttrack");
}
@Bean
public DataSource flywayDataSource() throws Exception {
logger.debug("Logging in with flyway for migrations");
return getDataSource(confService.getDatabaseRootUsername(),
confService.getDatabaseRootPassword(),
"");
logger.debug("Logging in with flyway for migrations");;
return getDataSource(confService.getDatabaseRootUsername(), confService.getDatabaseRootPassword(), "");
}
private DataSource getDataSource(String user, String passwd, String db) throws Exception {