From 6a2fab4f88cd3dabf76fb298e0dc6ad1d1e07180 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 11 Jul 2023 00:30:05 +0100 Subject: [PATCH] Commented a bit of code that is not yet ready --- src/pages/api/evaluate/speaking.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/api/evaluate/speaking.ts b/src/pages/api/evaluate/speaking.ts index ce275aba..eb42337f 100644 --- a/src/pages/api/evaluate/speaking.ts +++ b/src/pages/api/evaluate/speaking.ts @@ -26,11 +26,11 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { const binary = fs.readFileSync((audioFile as any).filepath).buffer; uploadBytes(audioFileRef, binary).then(async (snapshot) => { - const backendRequest = await axios.post(`${process.env.BACKEND_URL}/writing_task2`, req.body as Body, { - headers: { - Authorization: `Bearer ${process.env.BACKEND_JWT}`, - }, - }); + // const backendRequest = await axios.post(`${process.env.BACKEND_URL}/speaking_task`, req.body as Body, { + // headers: { + // Authorization: `Bearer ${process.env.BACKEND_JWT}`, + // }, + // }); fs.rmSync((audioFile as any).filepath); });