mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	during sync login we check that sync server source ID isn't local (can happen after document fork if server is not restarted)
This commit is contained in:
		
							parent
							
								
									4a3169dfdd
								
							
						
					
					
						commit
						d9e3a40ee4
					
				| @ -92,6 +92,10 @@ async function login() { | ||||
|         hash: hash | ||||
|     }); | ||||
| 
 | ||||
|     if (source_id.isLocalSourceId(resp.sourceId)) { | ||||
|         throw new Error(`Sync server has source ID ${resp.sourceId} which is also local. Try restarting sync server.`); | ||||
|     } | ||||
| 
 | ||||
|     syncContext.sourceId = resp.sourceId; | ||||
| 
 | ||||
|     return syncContext; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner