MCPcopy Index your code
hub / github.com/simstudioai/sim / latestResponseTime

Function latestResponseTime

apps/sim/connectors/google-forms/google-forms.ts:331–338  ·  view source on GitHub ↗

* Returns the greatest submission timestamp across the given responses, or * undefined when the list is empty.

(responses: FormResponse[])

Source from the content-addressed store, hash-verified

329 * undefined when the list is empty.
330 */
331function latestResponseTime(responses: FormResponse[]): string | undefined {
332 let latest = ''
333 for (const r of responses) {
334 const t = r.lastSubmittedTime || r.createTime || ''
335 if (t > latest) latest = t
336 }
337 return latest || undefined
338}
339
340/**
341 * Builds the content hash for a form. The hash must change when either the form

Callers 2

fetchFormResponsesFunction · 0.85
fetchLatestResponseTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected