MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / ensureLocalForDatabases

Function ensureLocalForDatabases

apps/desktop/src/main/index.ts:2269–2273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2267
2268 // Databases are local-vault only for now (no remote-server endpoints yet).
2269 const ensureLocalForDatabases = (): void => {
2270 if (isRemoteWorkspaceActive()) {
2271 throw new Error('Databases are not yet supported on remote vaults')
2272 }
2273 }
2274
2275 handle(IPC.VAULT_OPEN_DATABASE, async (_e, relPath: string) => {
2276 ensureLocalForDatabases()

Callers 1

registerIpcFunction · 0.85

Calls 1

isRemoteWorkspaceActiveFunction · 0.85

Tested by

no test coverage detected