Skip to content

Commit 75ee955

Browse files
Change address to optional
1 parent 0b7c281 commit 75ee955

File tree

1 file changed

+2
-2
lines changed
  • cardano-db-sync/src/Cardano/DbSync/OffChain/Vote

1 file changed

+2
-2
lines changed

cardano-db-sync/src/Cardano/DbSync/OffChain/Vote/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ class HasBody tp where
217217

218218
instance HasBody OtherOffChainData where
219219
type Body OtherOffChainData = MinimalBody OtherOffChainData
220-
parseAuthors o = o .: "authors"
220+
parseAuthors o = o .:? "authors"
221221
refrenceTypes = ["Other", "GovernanceMetadata"]
222222
toMinimal = id
223223

224224
instance HasBody GovernanceOffChainData where
225225
type Body GovernanceOffChainData = GABody
226-
parseAuthors o = o .: "authors"
226+
parseAuthors o = o .:? "authors"
227227
refrenceTypes = ["Other", "GovernanceMetadata"]
228228
toMinimal = minimalBodyGA
229229

0 commit comments

Comments
 (0)