function decryptAttendeesForTable
decryptAttendeesForTable(
rows: Attendee[],
privateKey: CryptoKey,
eventFields: string,
paidEvent?: boolean,
): Promise<Attendee[]>

Decrypt attendees for table display, skipping contact fields not configured on the event and payment fields for free events. For a free event that only collects email, this skips up to 6 RSA decryptions per attendee (phone, address, special_instructions, payment_id, refunded, plus 1 symmetric for price_paid).

Parameters

rows: Attendee[]
privateKey: CryptoKey
eventFields: string
optional
paidEvent: boolean = true

Return Type

Promise<Attendee[]>

Usage

import { decryptAttendeesForTable } from "docs/database.ts";