INNER CODE UNIT · TypeScript

duration

argus-sight/refund-swatter-lite · supabase/functions/apple-notification-history/index.ts:80

    const duration = Date.now() - startTime

    // Log the response details
    // Parse response for logging
    let responseData: any = null
    try {
      responseData = JSON.parse(responseText)
    } catch (e) {
    }

    // Update database log with response
    if (logId) {
      const { error: updateError } = await supabase
        .from('apple_api_logs')
        .update({
          response_status: response.status,
          response_headers: Object.fromEntries(response.headers.entries()),
          response_body: responseData || { raw: responseText.substring(0, 1000) },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…