mirror of
https://github.com/zoriya/Aeris.git
synced 2026-05-07 05:36:26 +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
|
||||
liftIO $ informWorker "POST" actionId
|
||||
let newReactions = reactionDatasToReactions (reactions (x :: PostPipelineData)) actionId
|
||||
let newPipelineWithId = newPipeline { pipelineId = actionId }
|
||||
createReactions newReactions
|
||||
return $ formatGetPipelineResponse newPipeline newReactions
|
||||
return $ formatGetPipelineResponse newPipelineWithId newReactions
|
||||
where
|
||||
p = action (x :: PostPipelineData)
|
||||
postPipelineHandler _ _ = throwError err401
|
||||
|
||||
Reference in New Issue
Block a user