()
| 11 | import { adminReprocessVideoWorkflow } from "@/workflows/admin-reprocess-video"; |
| 12 | |
| 13 | async function requireAdmin() { |
| 14 | const user = await getCurrentUser(); |
| 15 | if (!user || user.email !== MESSENGER_ADMIN_EMAIL) { |
| 16 | throw new Error("Unauthorized"); |
| 17 | } |
| 18 | return user; |
| 19 | } |
| 20 | |
| 21 | function parseVideoId(input: string) { |
| 22 | const trimmed = input.trim(); |
no outgoing calls
no test coverage detected