From 98fdff502b2fba14713ea9ba2be57ea94ddc0204 Mon Sep 17 00:00:00 2001 From: yutakobaayshidev <91340399+yutakobayashidev@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:45:12 +0900 Subject: [PATCH] fix: api type --- frontend/src/app/api/summarize/route.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/app/api/summarize/route.ts b/frontend/src/app/api/summarize/route.ts index 6de37d4..751bb9b 100644 --- a/frontend/src/app/api/summarize/route.ts +++ b/frontend/src/app/api/summarize/route.ts @@ -107,8 +107,6 @@ REFINED SUMMARY:`; } export async function POST(request: Request) { - if (!conn) return null; - const body = await request.json(); const query = "SELECT * FROM Video WHERE id = ? LIMIT 1";