forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
4c001d718e
commit
6f7d94890a
29 changed files with 430 additions and 308 deletions
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue