Skip to content

Commit

Permalink
Async Action: Fix json formatting in fetchActionResponseTx
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveenaidu authored Feb 22, 2021
1 parent 99f04df commit c4ebae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pro/server/src/HasuraPro/Metadata.hs
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ setActionStatusTx actionId status projectId = case status of

fetchActionResponseTx :: ActionId -> ProjectId -> Q.TxE QErr ActionLogResponse
fetchActionResponseTx actionId projectId = do
(ca, Q.AltJ rp, Q.AltJ errs, Q.AltJ sessVars) <-
(ca, rp, errs, Q.AltJ sessVars) <-
Q.getRow <$> Q.withQE defaultTxErrorHandler [Q.sql|
SELECT created_at, response_payload, errors, session_variables
SELECT created_at, response_payload::json, errors::json, session_variables::json
FROM hdb_action_log
WHERE id = $1
AND project_id = $2 :: uuid
|] (actionId, projectId) True
pure $ ActionLogResponse actionId ca rp errs sessVars
pure $ ActionLogResponse actionId ca (Q.getAltJ <$> rp) (Q.getAltJ <$> errs) sessVars

getDeprivedCronTriggerStatsTx :: ProjectId -> Q.TxE QErr [Trigger.CronTriggerStats]
getDeprivedCronTriggerStatsTx projectId =
Expand Down

0 comments on commit c4ebae2

Please sign in to comment.