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 8e417e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Support fetching from ipfs, using a new config `ipfs_gateway` [#1792]
- Fix an issue with drep metadata images [#1857]
- Fix an issue with pool_stat [#1833]
- Expect pool_stat instead of pool_stats in config [#1880]


## 13.5.0.2
Expand Down
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 8e417e3

Please sign in to comment.