INNER CODE UNIT · TypeScript
finalRangeDays
argus-sight/refund-swatter-lite · supabase/functions/apple-notification-history/index.ts:349
const finalRangeDays = (parsedEndDate - parsedStartDate) / (24 * 60 * 60 * 1000)
if (notificationType) {
requestBody.notificationType = notificationType // Use singular form as per Apple API spec
}
if (transactionId) {
requestBody.originalTransactionId = transactionId
}
// Fetch all pages of notification history
const allNotifications = await fetchAllNotificationHistory(
jwt,
environment,
requestBody,
supabase,
requestId
)
const duration = Date.now() - startTime