Skip to content

Commit

Permalink
Fix params.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredb96 committed Oct 29, 2024
1 parent 85b9932 commit c41c260
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object HmdaAnalyticsApp extends App with TransmittalSheetComponent with LarCompo
*/

case class YearlyTransmittalSheetRepositoryWrapper(year: String){
val transmittalSheet = new TransmittalSheetRepository(dbConfig, getTableNameByYear(year))
val transmittalSheet = new TransmittalSheetRepository(dbConfig, getTableNameByYear)

def getTransmittalSheet = transmittalSheet

Expand All @@ -88,15 +88,15 @@ object HmdaAnalyticsApp extends App with TransmittalSheetComponent with LarCompo

def count(): Future[Int] = transmittalSheet.count()

private def getTableNameByYear: String = {
private def getTableNameByYear = {
val configString = s"hmda.analytics.$year.tsTableName"
config.getString(configString)
}

}

case class QuarterlyTransmittalSheetRepositoryWrapper(year: String, quarter: String){
val transmittalSheet = new TransmittalSheetRepository(dbConfig, getTableNameByYear(year))
val transmittalSheet = new TransmittalSheetRepository(dbConfig, getTableNameByYear)

def getTransmittalSheet = transmittalSheet

Expand Down Expand Up @@ -125,7 +125,7 @@ object HmdaAnalyticsApp extends App with TransmittalSheetComponent with LarCompo
}

case class YearlyLarRepositoryWrapper(year: String){
val larRepo = new LarRepository(dbConfig, getTableNameByYear(year))
val larRepo = new LarRepository(dbConfig, getTableNameByYear)

def getLarRepository = larRepo

Expand All @@ -139,7 +139,7 @@ object HmdaAnalyticsApp extends App with TransmittalSheetComponent with LarCompo
}

case class QuarterlyLarRepositoryWrapper(year: String, quarter: String){
val larRepo = new LarRepository(dbConfig, getTableNameByYear(year))
val larRepo = new LarRepository(dbConfig, getTableNameByYear)

def getLarRepository = larRepo

Expand Down

0 comments on commit c41c260

Please sign in to comment.