Skip to content

Commit 4ddd491

Browse files
committed
fix webhook ID comparison to use string instead of number
1 parent 259f945 commit 4ddd491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/torch-webhook/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function POST(req: NextRequest) {
88

99
const webhookId = body.webhookId
1010

11-
if (webhookId !== Number(process.env.TORCH_WEBHOOK_ID)) {
11+
if (webhookId !== process.env.TORCH_WEBHOOK_ID) {
1212
return NextResponse.json({ message: "Invalid webhook ID" }, { status: 401 })
1313
}
1414

0 commit comments

Comments
 (0)