Correct viewkey field
This commit is contained in:
parent
00f2f2003a
commit
27a2fab424
1 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ instance ToJSON Owner where
|
|||
, "invoices" .= inv
|
||||
, "expiration" .= eTs
|
||||
, "payconf" .= pc
|
||||
, "viewKey" .= vk
|
||||
, "viewkey" .= vk
|
||||
]
|
||||
Nothing ->
|
||||
object
|
||||
|
@ -98,7 +98,7 @@ instance ToJSON Owner where
|
|||
, "invoices" .= inv
|
||||
, "expiration" .= eTs
|
||||
, "payconf" .= pc
|
||||
, "viewKey" .= vk
|
||||
, "viewkey" .= vk
|
||||
]
|
||||
|
||||
instance FromJSON Owner where
|
||||
|
@ -127,7 +127,7 @@ instance FromJSON Owner where
|
|||
inv <- obj .: "invoices"
|
||||
ets <- obj .: "expiration"
|
||||
pc <- obj .:? "payconf"
|
||||
vk <- obj .:? "viewKey"
|
||||
vk <- obj .:? "viewkey"
|
||||
pure $
|
||||
Owner
|
||||
(if not (null i)
|
||||
|
|
Loading…
Reference in a new issue