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

Function formatOrganizer

apps/sim/connectors/google-calendar/google-calendar.ts:99–105  ·  view source on GitHub ↗

* Formats an organizer into a display string.

(organizer?: { email?: string; displayName?: string })

Source from the content-addressed store, hash-verified

97 * Formats an organizer into a display string.
98 */
99function formatOrganizer(organizer?: { email?: string; displayName?: string }): string {
100 if (!organizer) return ''
101 if (organizer.displayName && organizer.email) {
102 return `${organizer.displayName} (${organizer.email})`
103 }
104 return organizer.displayName || organizer.email || ''
105}
106
107/**
108 * Builds a readable content string from a calendar event.

Callers 2

eventToContentFunction · 0.85
eventToDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected