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

View file

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