MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getChannelByWebsiteSlug

Function getChannelByWebsiteSlug

server/src/db/notification-channels-db.ts:220–227  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

218 * Get a channel by its website slug
219 */
220export async function getChannelByWebsiteSlug(slug: string): Promise<NotificationChannel | null> {
221 const result = await query<NotificationChannel>(
222 `SELECT * FROM notification_channels
223 WHERE website_slug = $1 AND website_enabled = true AND is_active = true`,
224 [slug]
225 );
226 return result.rows[0] || null;
227}
228
229/**
230 * Check if a channel is website-only (no Slack delivery)

Callers 1

createLatestRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected