Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
147
Issues
147
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
2fb1a0fa
Commit
2fb1a0fa
authored
Jan 04, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ERROR] Fix NodeUser error.
parent
59956b27
Pipeline
#94
canceled with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Flow.hs
src/Gargantext/Database/Flow.hs
+2
-2
Node.hs
src/Gargantext/Database/Schema/Node.hs
+1
-1
No files found.
src/Gargantext/Database/Flow.hs
View file @
2fb1a0fa
...
...
@@ -141,7 +141,7 @@ subFlowCorpus username cName = do
maybeUserId
<-
getUser
username
userId
<-
case
maybeUserId
of
Nothing
->
nodeError
NoUser
Nothing
->
nodeError
NoUser
Found
-- mk NodeUser gargantua_id "Node Gargantua"
Just
user
->
pure
$
userLight_id
user
...
...
@@ -177,7 +177,7 @@ subFlowAnnuaire username _cName = do
maybeUserId
<-
getUser
username
userId
<-
case
maybeUserId
of
Nothing
->
nodeError
NoUser
Nothing
->
nodeError
NoUser
Found
-- mk NodeUser gargantua_id "Node Gargantua"
Just
user
->
pure
$
userLight_id
user
...
...
src/Gargantext/Database/Schema/Node.hs
View file @
2fb1a0fa
...
...
@@ -53,13 +53,13 @@ import Prelude hiding (null, id, map, sum)
data
NodeError
=
NoListFound
|
NoRootFound
|
NoCorpusFound
|
NoUserFound
|
MkNode
|
UserNoParent
|
HasParent
|
ManyParents
|
NegativeId
|
NotImplYet
|
NoUser
|
ManyNodeUsers
deriving
(
Show
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment