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
|
, "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)
|
||||||
|
|
Loading…
Reference in a new issue