Chore: housekeeping

This commit is contained in:
Pieter Vander Vennet 2025-06-19 21:55:28 +02:00
parent 4c001d718e
commit 6f7d94890a
29 changed files with 430 additions and 308 deletions

View file

@ -130,9 +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")
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])
}