Correct viewkey field

This commit is contained in:
Rene Vergara 2022-07-20 10:24:39 -05:00
parent 00f2f2003a
commit 27a2fab424
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -71,7 +71,7 @@ instance ToJSON Owner where
, "invoices" .= inv , "invoices" .= inv
, "expiration" .= eTs , "expiration" .= eTs
, "payconf" .= pc , "payconf" .= pc
, "viewKey" .= vk , "viewkey" .= vk
] ]
Nothing -> Nothing ->
object object
@ -98,7 +98,7 @@ instance ToJSON Owner where
, "invoices" .= inv , "invoices" .= inv
, "expiration" .= eTs , "expiration" .= eTs
, "payconf" .= pc , "payconf" .= pc
, "viewKey" .= vk , "viewkey" .= vk
] ]
instance FromJSON Owner where instance FromJSON Owner where
@ -127,7 +127,7 @@ instance FromJSON Owner where
inv <- obj .: "invoices" inv <- obj .: "invoices"
ets <- obj .: "expiration" ets <- obj .: "expiration"
pc <- obj .:? "payconf" pc <- obj .:? "payconf"
vk <- obj .:? "viewKey" vk <- obj .:? "viewkey"
pure $ pure $
Owner Owner
(if not (null i) (if not (null i)