mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02: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