Fix: force downloading (without cache) before uploading

This commit is contained in:
Pieter Vander Vennet 2023-10-23 00:46:16 +02:00
parent d96fe61462
commit b85b2ace0b
3 changed files with 4 additions and 3 deletions

View file

@ -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",

View file

@ -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(

View file

@ -367,7 +367,7 @@ export class ChangesetHandler {
].map(([key, value]) => ({ ].map(([key, value]) => ({
key, key,
value, value,
aggretage: false, aggregate: false,
})) }))
} }