Skip to content

Commit

Permalink
Expect pool_stat instead of pool_stats in config
Browse files Browse the repository at this point in the history
Fixes #1880
  • Loading branch information
kderme committed Oct 22, 2024
1 parent 46a1c49 commit 1ce8938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-db-sync/src/Cardano/DbSync/Config/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ parseOverrides obj baseOptions = do
<*> obj .:? "plutus" .!= sioPlutus baseOptions
<*> obj .:? "governance" .!= sioGovernance baseOptions
<*> obj .:? "offchain_pool_data" .!= sioOffchainPoolData baseOptions
<*> obj .:? "pool_stats" .!= sioPoolStats baseOptions
<*> obj .:? "pool_stat" .!= sioPoolStats baseOptions
<*> obj .:? "json_type" .!= sioJsonType baseOptions
<*> obj .:? "remove_jsonb_from_schema" .!= sioRemoveJsonbFromSchema baseOptions

Expand All @@ -471,7 +471,7 @@ optionsToList SyncInsertOptions {..} =
, toJsonIfSet "plutus" sioPlutus
, toJsonIfSet "governance" sioGovernance
, toJsonIfSet "offchain_pool_data" sioOffchainPoolData
, toJsonIfSet "pool_stats" sioPoolStats
, toJsonIfSet "pool_stat" sioPoolStats
, toJsonIfSet "json_type" sioJsonType
, toJsonIfSet "remove_jsonb_from_schema" sioRemoveJsonbFromSchema
]
Expand Down Expand Up @@ -508,7 +508,7 @@ instance ToJSON SyncInsertOptions where
, "plutus" .= sioPlutus
, "governance" .= sioGovernance
, "offchain_pool_data" .= sioOffchainPoolData
, "pool_stats" .= sioPoolStats
, "pool_stat" .= sioPoolStats
, "json_type" .= sioJsonType
, "remove_jsonb_from_schema" .= sioRemoveJsonbFromSchema
]
Expand Down

0 comments on commit 1ce8938

Please sign in to comment.