1 {-# LANGUAGE DeriveAnyClass #-}
2 {-# LANGUAGE DuplicateRecordFields #-}
4 module Gargantext.API.GraphQL.AsyncTask where
7 import Data.Morpheus.Types
14 import Data.Text (Text)
15 import qualified Data.Text as T
16 import Gargantext.API.Admin.Orchestrator.Types (JobLog(..))
17 import Gargantext.API.Prelude (GargM, GargError)
18 import Gargantext.Core.Mail.Types (HasMail)
19 import Gargantext.Database.Admin.Types.Node (NodeId(..))
20 import Gargantext.Database.Prelude (HasConnectionPool, HasConfig)
21 import Gargantext.Prelude
22 import GHC.Generics (Generic)
27 } deriving (Generic, GQLType)
29 type GqlM e env = Resolver QUERY e (GargM env GargError)
32 :: (HasConnectionPool env, HasConfig env)
33 => JobLogArgs -> GqlM e env [JobLog]
34 resolveJobLogs JobLogArgs { job_log_id } = dbJobLogs job_log_id
37 :: (HasConnectionPool env, HasConfig env)
38 => Int -> GqlM e env [JobLog]
39 dbJobLogs job_log_id = do