mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 15:45:58 +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…
Reference in a new issue