Correct owner id in API
This commit is contained in:
parent
e1919be03a
commit
4e8ecb24e6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue