Skip to content

Commit

Permalink
fix(reindex): regression after dropping deriving-aeson
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Dec 30, 2023
1 parent 2334107 commit 7a80718
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ instance ToJSON ReindexSource where
toJSON ReindexSource {..} =
object
[ "index" .= reindexSourceIndex,
"maxDocs" .= reindexSourceMaxDocs,
"max_docs" .= reindexSourceMaxDocs,
"query" .= reindexSourceQuery,
"size" .= reindexSourceSize,
"slice" .= reindexSourceSlice
Expand All @@ -81,7 +81,7 @@ instance FromJSON ReindexSource where
parseJSON = withObject "ReindexSource" $ \v ->
ReindexSource
<$> v .: "index"
<*> v .:? "maxDocs"
<*> v .:? "max_docs"
<*> v .:? "query"
<*> v .:? "size"
<*> v .:? "slice"
Expand Down

0 comments on commit 7a80718

Please sign in to comment.