mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
fix test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user