Skip to content

Commit

Permalink
DataSync: fix strings in arrays are double escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Dec 7, 2024
1 parent 9bc16f6 commit ad90fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/DataSync/REST/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ aesonValueToPostgresValue (Number value) = case Scientific.floatingOrInteger val
Left (floating :: Double) -> PG.toField floating
Right (integer :: Integer) -> PG.toField integer
aesonValueToPostgresValue Data.Aeson.Null = PG.toField PG.Null
aesonValueToPostgresValue (Data.Aeson.Array values) = PG.toField (PG.PGArray (Vector.toList values))
aesonValueToPostgresValue (Data.Aeson.Array values) = PG.toField (PG.PGArray (map aesonValueToPostgresValue (Vector.toList values)))
aesonValueToPostgresValue object@(Object values) =
let
tryDecodeAsPoint :: Maybe Point
Expand Down

0 comments on commit ad90fc2

Please sign in to comment.