Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter committed Aug 16, 2024
1 parent e80fd23 commit 15d0823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sync-service/lib/electric/shapes/querying.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ defmodule Electric.Shapes.Querying do
pk_part = join_primary_keys(pk_cols)

# Because relation part of the key is known at query building time, we can use $1 to inject escaped version of the relation
~s['"key":' || ] <> pg_escape_string_for_json(~s['#{escape_relation(root_table)}' || '/"' || #{pk_part} || '"'])
~s['"key":' || ] <>
pg_escape_string_for_json(~s['#{escape_relation(root_table)}' || '/"' || #{pk_part} || '"'])
end

defp join_primary_keys(pk_cols) do
Expand Down

0 comments on commit 15d0823

Please sign in to comment.