Home / Function/ getTroubleshootingUpdatedDatesInternal() — supabase Function Reference

getTroubleshootingUpdatedDatesInternal() — supabase Function Reference

Architecture documentation for the getTroubleshootingUpdatedDatesInternal() function in Troubleshooting.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  4e713ea8_8e76_4ca7_4d8f_632cf8d638e3["getTroubleshootingUpdatedDatesInternal()"]
  251ba9cf_d7d1_c258_e2c5_c15bf3695b3a["getAllTroubleshootingEntries()"]
  4e713ea8_8e76_4ca7_4d8f_632cf8d638e3 -->|calls| 251ba9cf_d7d1_c258_e2c5_c15bf3695b3a
  b2812979_6579_ca1c_1f1d_fba7d2763a1c["supabase()"]
  4e713ea8_8e76_4ca7_4d8f_632cf8d638e3 -->|calls| b2812979_6579_ca1c_1f1d_fba7d2763a1c
  style 4e713ea8_8e76_4ca7_4d8f_632cf8d638e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Troubleshooting.utils.ts lines 91–108

async function getTroubleshootingUpdatedDatesInternal() {
  const databaseIds = (await getAllTroubleshootingEntries())
    .map((entry) => entry.data.database_id)
    .filter((id) => !id.startsWith('pseudo-'))

  const { data, error } = await supabase()
    .from('troubleshooting_entries')
    .select('id, date_updated')
    .in('id', databaseIds)
  if (error) {
    console.error(error)
  }

  return (data ?? []).reduce((acc, entry) => {
    acc.set(entry.id, new Date(entry.date_updated))
    return acc
  }, new Map<string, Date>())
}

Subdomains

Frequently Asked Questions

What does getTroubleshootingUpdatedDatesInternal() do?
getTroubleshootingUpdatedDatesInternal() is a function in the supabase codebase.
What does getTroubleshootingUpdatedDatesInternal() call?
getTroubleshootingUpdatedDatesInternal() calls 2 function(s): getAllTroubleshootingEntries, supabase.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free