Skip to content

Commit 1c2fa4b

Browse files
committed
Maybe this?
1 parent fe38a81 commit 1c2fa4b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/api/webhooks/mux/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function buildRobotsHookPayload(data: RobotsJobWebhookData, terminalStatus: Robo
3838
}
3939

4040
export async function POST(request: NextRequest) {
41+
throw new Error("I am blowing up!");
42+
4143
// Get raw body as text (NOT json) for signature verification and parsing
4244
const rawBody = await request.text();
4345

workflows/process-mux-ai.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ export function captionHookToken(assetId: string) {
4444

4545
async function startModerationJob(assetId: string): Promise<string> {
4646
"use step";
47-
48-
throw new Error("I am blowing up!");
49-
5047
const { id } = await mux.robots.jobs.moderate.create({
5148
parameters: { asset_id: assetId, thresholds: MODERATION_THRESHOLDS, max_samples: MODERATION_MAX_SAMPLES },
5249
});

0 commit comments

Comments
 (0)