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

Function findRemoteProfileById

apps/desktop/src/main/index.ts:1159–1165  ·  view source on GitHub ↗
(
  profiles: PersistedRemoteWorkspaceProfile[],
  id: string | null
)

Source from the content-addressed store, hash-verified

1157}
1158
1159function findRemoteProfileById(
1160 profiles: PersistedRemoteWorkspaceProfile[],
1161 id: string | null
1162): PersistedRemoteWorkspaceProfile | null {
1163 if (!id) return null
1164 return profiles.find((entry) => entry.id === id) ?? null
1165}
1166
1167async function migrateLegacyRemoteWorkspaceSecrets(): Promise<void> {
1168 const cfg = await loadConfig()

Calls

no outgoing calls

Tested by

no test coverage detected