(email: string, category: string)
| 32 | } |
| 33 | |
| 34 | export function getUnsubscribeUrl(email: string, category: string): string { |
| 35 | const token = generateUnsubscribeToken(email, category); |
| 36 | const params = new URLSearchParams({ email, category, token }); |
| 37 | const dashboardUrl = process.env.DASHBOARD_URL || 'http://localhost:3000'; |
| 38 | return `${dashboardUrl}/unsubscribe?${params.toString()}`; |
| 39 | } |
no test coverage detected