feat: WhatsApp notification helper + phase 4 migration (recheck_round, WhatsApp settings)
This commit is contained in:
@@ -3,7 +3,12 @@ export const dynamic = 'force-dynamic'
|
||||
import { NextRequest, NextResponse } from 'next/server'
|
||||
import { createClient } from '@/lib/supabase/server'
|
||||
|
||||
const ALLOWED_KEYS = ['ANTHROPIC_API_KEY', 'VOYAGE_API_KEY'] as const
|
||||
const ALLOWED_KEYS = [
|
||||
'ANTHROPIC_API_KEY',
|
||||
'VOYAGE_API_KEY',
|
||||
'META_WHATSAPP_PHONE_NUMBER_ID',
|
||||
'META_WHATSAPP_ACCESS_TOKEN',
|
||||
] as const
|
||||
type SettingKey = typeof ALLOWED_KEYS[number]
|
||||
|
||||
async function requireAdmin(supabase: Awaited<ReturnType<typeof createClient>>) {
|
||||
|
||||
Reference in New Issue
Block a user