From 3c580498d3374938252986bc73fb1565c45e8aec Mon Sep 17 00:00:00 2001 From: Talal Sharabi Date: Sat, 14 Mar 2026 16:54:06 +0400 Subject: [PATCH] Fix ESLint error: rename 'module' variable to avoid @next/next/no-assign-module-variable Made-with: Cursor --- src/pages/api/exam/upload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/api/exam/upload.ts b/src/pages/api/exam/upload.ts index deed0589..d8c1bdd0 100644 --- a/src/pages/api/exam/upload.ts +++ b/src/pages/api/exam/upload.ts @@ -9,10 +9,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { if (req.method !== "POST") return res.status(404).json({ok: false}); if (!req.session.token) return res.status(401).json({ok: false}); - const module = req.query.module as string; + const examModule = req.query.module as string; try { - const resp = await fetch(`${ODOO_URL}/api/exam/${module}`, { + const resp = await fetch(`${ODOO_URL}/api/exam/${examModule}`, { method: "POST", headers: { Authorization: `Bearer ${req.session.token}`,