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(',');