From b696897cfc69bfb24f3ef07001922e6cd5a80041 Mon Sep 17 00:00:00 2001 From: dakerboul Date: Mon, 10 Mar 2025 15:13:09 +0100 Subject: [PATCH] =?UTF-8?q?Commenter=20la=20v=C3=A9rification=20de=20l'int?= =?UTF-8?q?ervalle=20maximum=20dans=20la=20proc=C3=A9dure=20de=20capture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/cameraRoutes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/cameraRoutes.js b/routes/cameraRoutes.js index 61b69de..69b6efe 100644 --- a/routes/cameraRoutes.js +++ b/routes/cameraRoutes.js @@ -7,7 +7,7 @@ const db = require('../db'); const serverError = require('../utils/serverError'); const minInterval = 3; // Minutes -const maxInterval = 60; // Minutes +//const maxInterval = 60; // Minutes var captureProjectID = -1; var captureInterval = 0; // Minutes @@ -65,9 +65,9 @@ function startProcedure(projectId, interval) { if (interval < minInterval) { return { message: 'L\'intervalle de capture doit être supérieur ou égal à ' + minInterval + ' minutes.' }; } - if (interval > maxInterval) { - return { message: 'L\'intervalle de capture doit être inférieur ou égal à ' + maxInterval + ' minutes.' }; - } + // if (interval > maxInterval) { + // return { message: 'L\'intervalle de capture doit être inférieur ou égal à ' + maxInterval + ' minutes.' }; + // } captureInterval = interval; console.log('Procédure de capture démarrée avec succès, projet ID: ' + projectId + ', interval: ' + interval + ' minutes.'); return { message: 'Procédure de capture démarrée avec succès, projet ID: ' + projectId + ', interval: ' + interval + ' minutes.' };