From 1ce8938f40899bd72ba86af117dfdff1684129ec 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 --- cardano-db-sync/src/Cardano/DbSync/Config/Types.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ]