From a63bb71017b70bc1b8f2572d6f8bdfd60a6b8a34 Mon Sep 17 00:00:00 2001 From: Erza Bytyci Date: Sun, 7 Jun 2026 23:50:58 +0000 Subject: [PATCH] fix test --- gradesa/src/app/api/admin/exercises/fillinthegap/route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradesa/src/app/api/admin/exercises/fillinthegap/route.js b/gradesa/src/app/api/admin/exercises/fillinthegap/route.js index 913d872..bfd3622 100644 --- a/gradesa/src/app/api/admin/exercises/fillinthegap/route.js +++ b/gradesa/src/app/api/admin/exercises/fillinthegap/route.js @@ -34,7 +34,8 @@ export const POST = withAuth( const exerciseResult = await tx.query( `INSERT INTO exercises (created_at, updated_at, created_by, updated_by, category) VALUES (NOW(), NOW(), $1, $1, 'fillinthegap') - RETURNING id`[userId] + RETURNING id`, + [userId] ); const exerciseId = exerciseResult.rows[0].id;