forked from MapComplete/MapComplete
Scripts: fix delete
This commit is contained in:
parent
1ddfffcee0
commit
a018f15466
2 changed files with 6 additions and 2 deletions
|
@ -104,8 +104,12 @@ export class OsmPoiDatabase {
|
|||
return "osm-poi." + latest
|
||||
}
|
||||
|
||||
public static databaseNameFor(date: string) {
|
||||
return `${OsmPoiDatabase._prefix}.${date}`
|
||||
}
|
||||
|
||||
async createNew(date: string) {
|
||||
const dbname = `${OsmPoiDatabase._prefix}.${date}`
|
||||
const dbname = OsmPoiDatabase.databaseNameFor(date)
|
||||
console.log("Attempting to create a new database with name", dbname)
|
||||
const metaclient = this.getMetaClient()
|
||||
await metaclient.connect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue