(options: EmailOptions)
| 100 | } |
| 101 | |
| 102 | export async function shouldSkipForUnsubscribe(options: EmailOptions): Promise<boolean> { |
| 103 | const { emailType = 'transactional', to } = options |
| 104 | if (emailType === 'transactional') return false |
| 105 | const primaryEmail = Array.isArray(to) ? to[0] : to |
| 106 | return isUnsubscribed(primaryEmail, emailType) |
| 107 | } |
no test coverage detected