mirror of
https://github.com/zoriya/Aeris.git
synced 2026-05-27 08:34:44 +00:00
feat: return post with id
This commit is contained in:
@@ -166,8 +166,9 @@ postPipelineHandler (Authenticated (User uid _ _)) x = do
|
|||||||
actionId <- createPipeline newPipeline
|
actionId <- createPipeline newPipeline
|
||||||
liftIO $ informWorker "POST" actionId
|
liftIO $ informWorker "POST" actionId
|
||||||
let newReactions = reactionDatasToReactions (reactions (x :: PostPipelineData)) actionId
|
let newReactions = reactionDatasToReactions (reactions (x :: PostPipelineData)) actionId
|
||||||
|
let newPipelineWithId = newPipeline { pipelineId = actionId }
|
||||||
createReactions newReactions
|
createReactions newReactions
|
||||||
return $ formatGetPipelineResponse newPipeline newReactions
|
return $ formatGetPipelineResponse newPipelineWithId newReactions
|
||||||
where
|
where
|
||||||
p = action (x :: PostPipelineData)
|
p = action (x :: PostPipelineData)
|
||||||
postPipelineHandler _ _ = throwError err401
|
postPipelineHandler _ _ = throwError err401
|
||||||
|
|||||||
Reference in New Issue
Block a user