Skip to content

Commit

Permalink
editoast: remove duplicate query results using DISTINCT ON (object_id)
Browse files Browse the repository at this point in the history
Signed-off-by: hamz2a <[email protected]>
  • Loading branch information
hamz2a committed Sep 10, 2024
1 parent 950a5b1 commit fbb9361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editoast/src/models/infra/object_queryable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Infra {
)
} else {
format!("
SELECT
SELECT DISTINCT ON (object_table.obj_id)
object_table.obj_id as obj_id,
object_table.data as railjson,
ST_AsGeoJSON(ST_Transform(geographic, 4326))::jsonb as geographic
Expand Down

0 comments on commit fbb9361

Please sign in to comment.