diff --git a/scripts/osm2pgsql/osmPoiDatabase.ts b/scripts/osm2pgsql/osmPoiDatabase.ts index 8b55bcac8..c9ff82009 100644 --- a/scripts/osm2pgsql/osmPoiDatabase.ts +++ b/scripts/osm2pgsql/osmPoiDatabase.ts @@ -130,7 +130,9 @@ export class OsmPoiDatabase { } async deleteAllButLatest() { - const dbs = await this.findSuitableDatabases() + const dbs = await this.findSuitableDatabases() ?? [] + console.log(["Found databases:", ...dbs].join("\n ")) + console.log("Database ",dbs.at(-1)," is the latest database and will be preserved") for (let i = 0; i < dbs.length - 1; i++) { await this.deleteDatabase(dbs[i]) }