Commit da2abe0f authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] userId -> user_id && parentId -> parent_id

parent 15e4fe66
...@@ -25,8 +25,8 @@ instance decodeNodePoly :: (DecodeJson a) ...@@ -25,8 +25,8 @@ instance decodeNodePoly :: (DecodeJson a)
obj <- decodeJson json obj <- decodeJson json
id <- obj .: "id" id <- obj .: "id"
typename <- obj .: "typename" typename <- obj .: "typename"
userId <- obj .: "userId" userId <- obj .: "user_id"
parentId <- obj .: "parentId" parentId <- obj .: "parent_id"
name <- obj .: "name" name <- obj .: "name"
date <- obj .: "date" date <- obj .: "date"
......
...@@ -268,8 +268,8 @@ instance decodeAnnuaireInfo :: DecodeJson AnnuaireInfo where ...@@ -268,8 +268,8 @@ instance decodeAnnuaireInfo :: DecodeJson AnnuaireInfo where
obj <- decodeJson json obj <- decodeJson json
id <- obj .: "id" id <- obj .: "id"
typename <- obj .: "typename" typename <- obj .: "typename"
userId <- obj .: "userId" userId <- obj .: "user_id"
parentId <- obj .: "parentId" parentId <- obj .: "parent_id"
name <- obj .: "name" name <- obj .: "name"
date <- obj .: "date" date <- obj .: "date"
hyperdata <- obj .: "hyperdata" hyperdata <- obj .: "hyperdata"
......
...@@ -34,9 +34,9 @@ instance decodeNodeContact :: DecodeJson NodeContact where ...@@ -34,9 +34,9 @@ instance decodeNodeContact :: DecodeJson NodeContact where
hyperdata <- obj .: "hyperdata" hyperdata <- obj .: "hyperdata"
id <- obj .: "id" id <- obj .: "id"
name <- obj .:! "name" name <- obj .:! "name"
parentId <- obj .?| "parentId" parentId <- obj .?| "parent_id"
typename <- obj .?| "typename" typename <- obj .?| "typename"
userId <- obj .:! "userId" userId <- obj .:! "user_id"
pure $ NodeContact { id pure $ NodeContact { id
, date , date
...@@ -70,9 +70,9 @@ instance decodeContact' :: DecodeJson Contact' where ...@@ -70,9 +70,9 @@ instance decodeContact' :: DecodeJson Contact' where
hyperdata <- obj .: "hyperdata" hyperdata <- obj .: "hyperdata"
id <- obj .: "id" id <- obj .: "id"
name <- obj .:! "name" name <- obj .:! "name"
parentId <- obj .?| "parentId" parentId <- obj .?| "parent_id"
typename <- obj .?| "typename" typename <- obj .?| "typename"
userId <- obj .:! "userId" userId <- obj .:! "user_id"
pure $ Contact' { id pure $ Contact' { id
, date , date
...@@ -106,9 +106,9 @@ instance decodeContact :: DecodeJson Contact where ...@@ -106,9 +106,9 @@ instance decodeContact :: DecodeJson Contact where
hyperdata <- obj .: "hyperdata" hyperdata <- obj .: "hyperdata"
id <- obj .: "id" id <- obj .: "id"
name <- obj .:! "name" name <- obj .:! "name"
parentId <- obj .?| "parentId" parentId <- obj .?| "parent_id"
typename <- obj .?| "typename" typename <- obj .?| "typename"
userId <- obj .:! "userId" userId <- obj .:! "user_id"
pure $ Contact { id pure $ Contact { id
, date , date
...@@ -139,9 +139,9 @@ instance decodeUser :: DecodeJson User where ...@@ -139,9 +139,9 @@ instance decodeUser :: DecodeJson User where
hyperdata <- obj .: "hyperdata" hyperdata <- obj .: "hyperdata"
id <- obj .: "id" id <- obj .: "id"
name <- obj .:! "name" name <- obj .:! "name"
parentId <- obj .?| "parentId" parentId <- obj .?| "parent_id"
typename <- obj .?| "typename" typename <- obj .?| "typename"
userId <- obj .:! "userId" userId <- obj .:! "user_id"
pure $ User { id pure $ User { id
, date , date
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment