From fef97f29351fcc23380594c82aaab0271b088156 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Thu, 3 Mar 2022 15:43:39 +0100 Subject: [PATCH] fix: inform worker good route --- api/src/Api/Pipeline.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Api/Pipeline.hs b/api/src/Api/Pipeline.hs index 24f94b8..457e4fc 100644 --- a/api/src/Api/Pipeline.hs +++ b/api/src/Api/Pipeline.hs @@ -136,13 +136,13 @@ informWorker method id = do url <- envAsString "WORKER_URL" "worker/" request <- parseRequest url + print request response <- httpBS $ setRequestMethod method - $ addRequestHeader "Accept" "application/json" - $ setRequestPath (encodeUtf8 (pack $ "/worker/" <> show id)) + $ setRequestPath (encodeUtf8 (pack $ "/workflow/" <> show id)) request + print response return () - <|> return () getPipelineHandler :: AuthRes -> PipelineId -> AppM GetPipelineResponse