forked from MapComplete/MapComplete
		
	Add some logging
This commit is contained in:
		
							parent
							
								
									7e7036fa90
								
							
						
					
					
						commit
						c9dfbf106c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -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]) | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue