MCPcopy Create free account
hub / github.com/simstudioai/sim / buildContentHash

Function buildContentHash

apps/sim/connectors/granola/granola.ts:99–101  ·  view source on GitHub ↗

* Produces the change-detection hash for a note from its stable identifiers. * Granola exposes `updated_at`, which advances whenever the note (or its summary) * changes, so a metadata-only hash is sufficient and stays identical between the * list stub and the fetched document — letting the sync e

(id: string, updatedAt: string)

Source from the content-addressed store, hash-verified

97 * unchanged notes.
98 */
99function buildContentHash(id: string, updatedAt: string): string {
100 return `granola:${id}:${updatedAt}`
101}
102
103/**
104 * Parses the optional `maxNotes` cap from source config.

Callers 2

noteSummaryToStubFunction · 0.70
granola.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected