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

Function profileMatchesConnection

apps/desktop/src/main/index.ts:1148–1157  ·  view source on GitHub ↗
(
  profile: PersistedRemoteWorkspaceProfile,
  connection: PersistedRemoteWorkspaceConfig,
  vaultPath: string | null
)

Source from the content-addressed store, hash-verified

1146}
1147
1148function profileMatchesConnection(
1149 profile: PersistedRemoteWorkspaceProfile,
1150 connection: PersistedRemoteWorkspaceConfig,
1151 vaultPath: string | null
1152): boolean {
1153 return (
1154 normalizeRemoteBaseUrl(profile.baseUrl) === normalizeRemoteBaseUrl(connection.baseUrl) &&
1155 (profile.vaultPath ?? null) === (vaultPath ?? null)
1156 )
1157}
1158
1159function findRemoteProfileById(
1160 profiles: PersistedRemoteWorkspaceProfile[],

Callers 1

Calls 1

normalizeRemoteBaseUrlFunction · 0.85

Tested by

no test coverage detected