Fix: force downloading (without cache) before uploading
This commit is contained in:
parent
d96fe61462
commit
b85b2ace0b
3 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.33.12",
|
"version": "0.33.13",
|
||||||
"repository": "https://github.com/pietervdvn/MapComplete",
|
"repository": "https://github.com/pietervdvn/MapComplete",
|
||||||
"description": "A small website to edit OSM easily",
|
"description": "A small website to edit OSM easily",
|
||||||
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
||||||
|
|
|
@ -411,7 +411,8 @@ export class Changes {
|
||||||
let osmObjects = await Promise.all<{ id: string; osmObj: OsmObject | "deleted" }>(
|
let osmObjects = await Promise.all<{ id: string; osmObj: OsmObject | "deleted" }>(
|
||||||
neededIds.map(async (id) => {
|
neededIds.map(async (id) => {
|
||||||
try {
|
try {
|
||||||
const osmObj = await downloader.DownloadObjectAsync(id)
|
// Important: we do **not** cache this request, we _always_ need a fresh version!
|
||||||
|
const osmObj = await downloader.DownloadObjectAsync(id, 0)
|
||||||
return { id, osmObj }
|
return { id, osmObj }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(
|
console.error(
|
||||||
|
|
|
@ -367,7 +367,7 @@ export class ChangesetHandler {
|
||||||
].map(([key, value]) => ({
|
].map(([key, value]) => ({
|
||||||
key,
|
key,
|
||||||
value,
|
value,
|
||||||
aggretage: false,
|
aggregate: false,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue