Skip to content

Commit

Permalink
Update ConnectorConfig loader
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinRay97 committed Dec 3, 2024
1 parent eac9675 commit e373504
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.hasura.phoenix

import io.hasura.ndc.app.services.ConnectorConfigurationLoader

import io.hasura.ndc.common.ConnectorConfiguration
import io.hasura.ndc.common.NDCScalar
import io.hasura.ndc.ir.*
import io.hasura.ndc.ir.Field.ColumnField
Expand Down Expand Up @@ -131,7 +132,7 @@ object NoRelationshipsQueryGenerator : BaseQueryGenerator() {
}

fun columnTypeTojOOQType(collection: String, field: ColumnField): DataType<out Any> {
val connectorConfig = ConnectorConfigurationLoader.config
val connectorConfig = ConnectorConfiguration.Loader.config

val table = connectorConfig.tables.find { it.tableName == collection }
?: error("Table $collection not found in connector configuration")
Expand Down

0 comments on commit e373504

Please sign in to comment.