2 Module : Gargantext.Database.Flow.Annuaire
3 Description : Database Flow Annuaire
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
12 {-# LANGUAGE ConstraintKinds #-}
14 module Gargantext.Database.Action.Flow.Annuaire
19 import Gargantext.Prelude
20 import Gargantext.Database.Flow
24 flowAnnuaire :: FlowCmdM env ServantErr m => FilePath -> m ()
25 flowAnnuaire filePath = do
26 contacts <- liftBase $ deserialiseImtUsersFromFile filePath
27 ps <- flowInsertAnnuaire "Annuaire"
28 $ map (\h-> ToDbContact h)
29 $ map addUniqIdsContact contacts
30 printDebug "length annuaire" ps