Skip to content

Commit

Permalink
made sure that osm data is not required to run the server
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jan 1, 2025
1 parent dffde1b commit cd2e424
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 42 deletions.
2 changes: 0 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ services:
depends_on:
meilisearch:
condition: service_healthy
osm2pgsql-init:
condition: service_completed_successfully
db:
condition: service_healthy
meilisearch:
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions server/src/maps/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn all_entries(pool: &PgPool) {
}

async fn repopulate_indoor_features(pool: &PgPool) -> sqlx::Result<()> {
sqlx::query!(r#"
sqlx::query(r#"
with max_version(max_import_version) as (SELECT MAX(import_version) from indoor_features i2),
groups_with_outdated_version(group_id, import_version) as (SELECT group_id, import_version
from indoor_features,
Expand All @@ -25,7 +25,7 @@ async fn repopulate_indoor_features(pool: &PgPool) -> sqlx::Result<()> {
and import_version in (select distinct import_version from groups_with_outdated_version);"#)
.execute(pool)
.await?;
sqlx::query!(r#"
sqlx::query(r#"
WITH max_version(max_import_version) AS (SELECT MAX(import_version) FROM indoor_features i2),
geometry(gid, geom, tags) AS (SELECT way_id AS gid, geom, tags
FROM indoor_ways
Expand Down

0 comments on commit cd2e424

Please sign in to comment.