Skip to content

Commit 8e417e3

Browse files
committed
Expect pool_stat instead of pool_stats in config
Fixes #1880
1 parent 46a1c49 commit 8e417e3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Support fetching from ipfs, using a new config `ipfs_gateway` [#1792]
77
- Fix an issue with drep metadata images [#1857]
88
- Fix an issue with pool_stat [#1833]
9+
- Expect pool_stat instead of pool_stats in config [#1880]
910

1011

1112
## 13.5.0.2

cardano-db-sync/src/Cardano/DbSync/Config/Types.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ parseOverrides obj baseOptions = do
450450
<*> obj .:? "plutus" .!= sioPlutus baseOptions
451451
<*> obj .:? "governance" .!= sioGovernance baseOptions
452452
<*> obj .:? "offchain_pool_data" .!= sioOffchainPoolData baseOptions
453-
<*> obj .:? "pool_stats" .!= sioPoolStats baseOptions
453+
<*> obj .:? "pool_stat" .!= sioPoolStats baseOptions
454454
<*> obj .:? "json_type" .!= sioJsonType baseOptions
455455
<*> obj .:? "remove_jsonb_from_schema" .!= sioRemoveJsonbFromSchema baseOptions
456456

@@ -471,7 +471,7 @@ optionsToList SyncInsertOptions {..} =
471471
, toJsonIfSet "plutus" sioPlutus
472472
, toJsonIfSet "governance" sioGovernance
473473
, toJsonIfSet "offchain_pool_data" sioOffchainPoolData
474-
, toJsonIfSet "pool_stats" sioPoolStats
474+
, toJsonIfSet "pool_stat" sioPoolStats
475475
, toJsonIfSet "json_type" sioJsonType
476476
, toJsonIfSet "remove_jsonb_from_schema" sioRemoveJsonbFromSchema
477477
]
@@ -508,7 +508,7 @@ instance ToJSON SyncInsertOptions where
508508
, "plutus" .= sioPlutus
509509
, "governance" .= sioGovernance
510510
, "offchain_pool_data" .= sioOffchainPoolData
511-
, "pool_stats" .= sioPoolStats
511+
, "pool_stat" .= sioPoolStats
512512
, "json_type" .= sioJsonType
513513
, "remove_jsonb_from_schema" .= sioRemoveJsonbFromSchema
514514
]

0 commit comments

Comments
 (0)