[framecalc] fixes to POST request (should be JSON)

parent 06997c7d
Pipeline #3824 failed with stage
in 0 seconds
......@@ -791,10 +791,7 @@ uploadFrameCalc :: Session
-> AffRESTError GT.AsyncTaskWithType
uploadFrameCalc session id lang selection = do
let p = GR.NodeAPI GT.Node (Just id) $ GT.asyncTaskTypePath GT.UploadFrameCalc
let body = [
Tuple "_wf_lang" (Just $ show lang)
, Tuple "_wf_selection" (Just $ show selection)
]
eTask <- postWwwUrlencoded session p body
eTask <- post session p { _wf_lang: Just lang
, _wf_selection: selection }
pure $ (\task -> GT.AsyncTaskWithType { task, typ: GT.UploadFrameCalc }) <$> eTask
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment