From 8e417e3b9a796861aef8a784cdeccf463d05563a Mon Sep 17 00:00:00 2001 From: Kostas Dermentzis Date: Tue, 22 Oct 2024 15:40:27 +0300 Subject: [PATCH] Expect pool_stat instead of pool_stats in config Fixes https://github.com/IntersectMBO/cardano-db-sync/issues/1880 --- CHANGELOG.md | 1 + cardano-db-sync/src/Cardano/DbSync/Config/Types.hs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc437163e..1fb45f334 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cardano-db-sync/src/Cardano/DbSync/Config/Types.hs b/cardano-db-sync/src/Cardano/DbSync/Config/Types.hs index 2e4249a45..813ce2956 100644 --- a/cardano-db-sync/src/Cardano/DbSync/Config/Types.hs +++ b/cardano-db-sync/src/Cardano/DbSync/Config/Types.hs @@ -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 @@ -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 ] @@ -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 ]