Commit 3eea9cba authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] removing panic with NodeStory version

parent d18e6db2
## Version 0.0.6.8.5.9
* [ALL][FEAT] Text Flow with NoList built as option
* [FRONT][FIX][Adding 3th ngrams in document view breaks ngrams Table (#476)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/476)
## Version 0.0.6.8.5.8
* [FRONT][FIX][Graph Explorer Nodes (#471)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/471)
* [FRONT][FIX][Adding 3th ngrams in document view breaks ngrams Table (#476)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/476)
* [FRONT][FIX][[docs] Backend improvements (#443)](https://gitlab.iscpif.fr/gargantext/purescript-gargantext/issues/443)
## Version 0.0.6.8.5.7
......
......@@ -412,10 +412,12 @@ getNodeStory c nId@(NodeId nodeId) = do
-- `node_stories_ngrams` without the `version` colum? Then we would
-- have `version` in only one place.
let versionsS = Set.fromList $ map (\a -> a ^. a_version) dbData
{-
if Set.size versionsS > 1 then
panic $ Text.pack $ "[getNodeStory] versions for " <> show nodeId <> " differ! " <> show versionsS
else
pure ()
-}
pure $ NodeStory $ Map.singleton nId $ foldl combine mempty dbData
where
......
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