()
| 206 | * Get website-enabled channels for public display |
| 207 | */ |
| 208 | export async function getWebsiteChannels(): Promise<NotificationChannel[]> { |
| 209 | const result = await query<NotificationChannel>( |
| 210 | `SELECT * FROM notification_channels |
| 211 | WHERE website_enabled = true AND is_active = true |
| 212 | ORDER BY display_order, name` |
| 213 | ); |
| 214 | return result.rows; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Get a channel by its website slug |
no outgoing calls
no test coverage detected