Skip to content

Commit

Permalink
Don't fail when language is missing from metadata context
Browse files Browse the repository at this point in the history
Assume en-ys
  • Loading branch information
kderme committed Oct 2, 2024
1 parent 830fef2 commit 774396d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-db-sync/src/Cardano/DbSync/OffChain/Vote/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ instance FromJSON Context where
parseJSON =
withObject "Context" $ \o ->
Context
<$> o .: "@language"
<$> o .:? "@language" .!= "en-us"

instance FromJSON TextValue where
parseJSON v = case v of
Expand Down

0 comments on commit 774396d

Please sign in to comment.