fix(ci): use the bound database for map defaults and retry preloads

Write both defaults in one guarded statement so a SQLite source imported by the Postgres suite needs no Postgres lock. Release a failed speculative chunk promise so opening the map can retry it.
This commit is contained in:
Maurice
2026-11-30 16:45:35 +01:00
parent 54c54d5e65
commit dbf011f026
4 changed files with 50 additions and 30 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export function preloadTripMapRenderer(provider: string | undefined, token: stri
const engine = pickGlRenderer(provider, token)
if (!engine) return
const view = engine === 'maplibre-gl' ? MapViewGLMaplibre : MapViewGLMapbox
void view.preload().catch((error: unknown) => console.debug('[map] renderer preload failed', error))
void view.preload()
}
export const JourneyMapGLMapbox = lazyWithRetry(async () => {