forked from MapComplete/MapComplete
Fix errors in script
This commit is contained in:
parent
468b895302
commit
48a87aa52f
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ export class OsmPoiDatabase {
|
|||
let latestDate: Date = undefined
|
||||
for (const name of dbs) {
|
||||
const date = new Date(name)
|
||||
if (latestDate.getTime() < date.getTime()) {
|
||||
if (latestDate === undefined || latestDate.getTime() < date.getTime()) {
|
||||
latest = name
|
||||
latestDate = date
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ export class OsmPoiDatabase {
|
|||
}
|
||||
|
||||
console.log("Latest database is:", latest)
|
||||
return latest
|
||||
return "osm-poi."+latest
|
||||
}
|
||||
|
||||
async createNew(date: string) {
|
||||
|
|
Loading…
Reference in a new issue