Commit 2fb1a0fa authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERROR] Fix NodeUser error.

parent 59956b27
Pipeline #94 canceled with stage
...@@ -141,7 +141,7 @@ subFlowCorpus username cName = do ...@@ -141,7 +141,7 @@ subFlowCorpus username cName = do
maybeUserId <- getUser username maybeUserId <- getUser username
userId <- case maybeUserId of userId <- case maybeUserId of
Nothing -> nodeError NoUser Nothing -> nodeError NoUserFound
-- mk NodeUser gargantua_id "Node Gargantua" -- mk NodeUser gargantua_id "Node Gargantua"
Just user -> pure $ userLight_id user Just user -> pure $ userLight_id user
...@@ -177,7 +177,7 @@ subFlowAnnuaire username _cName = do ...@@ -177,7 +177,7 @@ subFlowAnnuaire username _cName = do
maybeUserId <- getUser username maybeUserId <- getUser username
userId <- case maybeUserId of userId <- case maybeUserId of
Nothing -> nodeError NoUser Nothing -> nodeError NoUserFound
-- mk NodeUser gargantua_id "Node Gargantua" -- mk NodeUser gargantua_id "Node Gargantua"
Just user -> pure $ userLight_id user Just user -> pure $ userLight_id user
......
...@@ -53,13 +53,13 @@ import Prelude hiding (null, id, map, sum) ...@@ -53,13 +53,13 @@ import Prelude hiding (null, id, map, sum)
data NodeError = NoListFound data NodeError = NoListFound
| NoRootFound | NoRootFound
| NoCorpusFound | NoCorpusFound
| NoUserFound
| MkNode | MkNode
| UserNoParent | UserNoParent
| HasParent | HasParent
| ManyParents | ManyParents
| NegativeId | NegativeId
| NotImplYet | NotImplYet
| NoUser
| ManyNodeUsers | ManyNodeUsers
deriving (Show) deriving (Show)
......
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