fix nested errors array in ws-server response log (#3971)

This commit is contained in:
Toan Nguyen 2020-04-23 03:33:51 +07:00 committed by GitHub
parent 447aac3692
commit 2e8234f1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,7 +366,7 @@ pollQuery metrics batchSize pgExecCtx pgQuery handler =
getCohortOperations cohortSnapshotMap actionMeta = \case
Left e ->
-- TODO: this is internal error
let resp = GQExecError [encodeGQErr False e]
let resp = GQExecError [encodeGQLErr False e]
in [ (resp, Nothing, actionMeta, snapshot)
| (_, snapshot) <- Map.toList cohortSnapshotMap
]