mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-04 05:22:58 +00:00
cli daemon: set disableCheckingConfigMismatch for headless operation
The config mismatch dialog's defaultAction is "Dismiss" which blocks replication. Since the daemon cannot resolve mismatches interactively, skip the check entirely and accept the remote configuration as-is.
This commit is contained in:
@@ -22,7 +22,6 @@ export async function runCommand(options: CLIOptions, context: CLICommandContext
|
|||||||
// accept whatever configuration the remote has.
|
// accept whatever configuration the remote has.
|
||||||
await core.services.setting.applyPartial({ disableCheckingConfigMismatch: true }, true);
|
await core.services.setting.applyPartial({ disableCheckingConfigMismatch: true }, true);
|
||||||
|
|
||||||
|
|
||||||
// 1. Replicate CouchDB → local PouchDB so the mirror scan has content to work with.
|
// 1. Replicate CouchDB → local PouchDB so the mirror scan has content to work with.
|
||||||
log("Replicating from CouchDB...");
|
log("Replicating from CouchDB...");
|
||||||
const replResult = await core.services.replication.replicate(true);
|
const replResult = await core.services.replication.replicate(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user