mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 05:25:37 +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
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ async function login() {
|
||||||
hash: hash
|
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;
|
syncContext.sourceId = resp.sourceId;
|
||||||
|
|
||||||
return syncContext;
|
return syncContext;
|
||||||
|
|
Loading…
Add table
Reference in a new issue