(recipient: string)
| 35 | } |
| 36 | |
| 37 | export async function requireEmail(recipient: string) { |
| 38 | const email = await readEmail(recipient) |
| 39 | if (!email) throw new Error(`Email to ${recipient} not found`) |
| 40 | return email |
| 41 | } |
| 42 | |
| 43 | export async function readEmail(recipient: string) { |
| 44 | try { |
nothing calls this directly
no test coverage detected