forked from MapComplete/MapComplete
		
	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", | ||||
|   "version": "0.33.12", | ||||
|   "version": "0.33.13", | ||||
|   "repository": "https://github.com/pietervdvn/MapComplete", | ||||
|   "description": "A small website to edit OSM easily", | ||||
|   "bugs": "https://github.com/pietervdvn/MapComplete/issues", | ||||
|  |  | |||
|  | @ -411,7 +411,8 @@ export class Changes { | |||
|         let osmObjects = await Promise.all<{ id: string; osmObj: OsmObject | "deleted" }>( | ||||
|             neededIds.map(async (id) => { | ||||
|                 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 } | ||||
|                 } catch (e) { | ||||
|                     console.error( | ||||
|  |  | |||
|  | @ -367,7 +367,7 @@ export class ChangesetHandler { | |||
|         ].map(([key, value]) => ({ | ||||
|             key, | ||||
|             value, | ||||
|             aggretage: false, | ||||
|             aggregate: false, | ||||
|         })) | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue