Commented a bit of code that is not yet ready

This commit is contained in:
Tiago Ribeiro
2023-07-11 00:30:05 +01:00
parent 9637cb6477
commit 6a2fab4f88

View File

@@ -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);
});