Skip to content

Commit

Permalink
editoast: fix /layers endpoint
Browse files Browse the repository at this point in the history
Follow-up on #5809
This fixes broken editoast test.
  • Loading branch information
bougue-pe committed Nov 23, 2023
1 parent 2019297 commit 8ddf0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editoast/src/views/layers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ async fn layer_view(

Ok(Json(ViewMetadata {
data_type: "vector".to_owned(),
name: layer_slug,
promote_id: json!({"layer_slug": layer.id_field}),
name: layer_slug.to_owned(),
promote_id: json!({layer_slug: layer.id_field}),
scheme: "xyz".to_owned(),
tiles: vec![tiles_url_pattern],
attribution: layer.attribution.clone().unwrap_or_default(),
Expand Down

0 comments on commit 8ddf0c8

Please sign in to comment.