forked from MapComplete/MapComplete
Debugging
This commit is contained in:
parent
bb4a8e9654
commit
e7876d62da
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,6 @@ class OsmPoiDatabase {
|
||||||
console.log("Getting layers: ", q, result)
|
console.log("Getting layers: ", q, result)
|
||||||
const layers = result.rows.map((r) => r.table_name.substring("lines_".length))
|
const layers = result.rows.map((r) => r.table_name.substring("lines_".length))
|
||||||
this.supportedLayers = new Set(layers)
|
this.supportedLayers = new Set(layers)
|
||||||
console.log("Layers are:", layers)
|
|
||||||
this.supportedLayersDate = new Date()
|
this.supportedLayersDate = new Date()
|
||||||
return this.supportedLayers
|
return this.supportedLayers
|
||||||
}
|
}
|
||||||
|
@ -214,6 +213,7 @@ const server = new Server(2345, [
|
||||||
handle: async (path: string) => {
|
handle: async (path: string) => {
|
||||||
const layers = await tcs.getLayers()
|
const layers = await tcs.getLayers()
|
||||||
const meta = await tcs.getMeta()
|
const meta = await tcs.getMeta()
|
||||||
|
console.log("Got layers:", layers, "for status")
|
||||||
return JSON.stringify({ meta, layers: Array.from(layers) })
|
return JSON.stringify({ meta, layers: Array.from(layers) })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue