Correct owner id in API

This commit is contained in:
Rene Vergara 2023-05-10 14:16:33 -05:00
parent e1919be03a
commit 4e8ecb24e6
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 2 additions and 2 deletions

View File

@ -920,7 +920,7 @@ routes pipe config = do
[ "message" .= ("Owner found!" :: String)
, "owner" .=
object
[ "_id" .= (show $ o_id q :: String)
[ "_id" .= (maybe "" show $ o_id q :: String)
, "address" .= oaddress q
, "name" .= oname q
, "currency" .= ocurrency q
@ -952,7 +952,7 @@ routes pipe config = do
[ "message" .= ("Owner found!" :: String)
, "owner" .=
object
[ "_id" .= (show $ o_id q :: String)
[ "_id" .= (maybe "" show $ o_id q :: String)
, "address" .= oaddress q
, "name" .= oname q
, "currency" .= ocurrency q