From 1c03dd922de13c2618bbc2b2ba0bd97ab0e71a66 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Sun, 12 Jan 2025 15:17:35 +0000 Subject: [PATCH] =?UTF-8?q?Ajouter=20un=20champ=20suppl=C3=A9mentaire=20?= =?UTF-8?q?=C3=A0=20la=20requ=C3=AAte=20de=20cr=C3=A9ation=20de=20vid?= =?UTF-8?q?=C3=A9o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 5ee8458..757ece2 100644 --- a/routes/api.js +++ b/routes/api.js @@ -392,7 +392,7 @@ router.get('/videos/:id', (req, res) => { * description: Internal server error */ router.post('/createvideo', (req, res) => { - const query = 'INSERT INTO public.videos (project_id, measurement_ids, video_path, start_timestamp, end_timestamp, image_count, resolution, duration, fps, status, name) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING id'; + const query = 'INSERT INTO public.videos (project_id, measurement_ids, video_path, start_timestamp, end_timestamp, image_count, resolution, duration, fps, status, name) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING id'; list_ids = req.body.measurement_ids.split(',');