fix(camera): Renommer la propriété 'active' en 'idle' dans les paramètres de la caméra et mettre à jour la documentation des routes de projet
All checks were successful
SSH Backend Deploy / ssh-deploy (push) Successful in 10s

This commit is contained in:
2025-04-27 11:47:58 +02:00
parent 4427e6dde0
commit 11c8951b6f
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class CameraController {
interval: interval, interval: interval,
nb_images: nb_images, nb_images: nb_images,
stop_flag: false, stop_flag: false,
active: 1 // active = 1 (idle = 0) idle: false // idle = 1 (idle = 0)
}; };
await Camera.updateCamera(1, newSettings); await Camera.updateCamera(1, newSettings);

View File

@@ -48,7 +48,7 @@ class Camera {
static initializeCamera = wrapDatabaseOperation(async () => { static initializeCamera = wrapDatabaseOperation(async () => {
const { defaultSettings } = config.camera; const { defaultSettings } = config.camera;
const query = ` const query = `
INSERT INTO camera (id, interval, maintenance, active) INSERT INTO camera (id, interval, maintenance, idle)
VALUES ($1, $2, $3, $4) VALUES ($1, $2, $3, $4)
ON CONFLICT (id) DO NOTHING ON CONFLICT (id) DO NOTHING
RETURNING *; RETURNING *;

View File

@@ -147,7 +147,7 @@ router.get('/projects/:id/measurements', ProjectController.getProjectMeasurement
* description: Description détaillée du projet * description: Description détaillée du projet
* status: * status:
* type: integer * type: integer
* description: Statut du projet (0: new, 1: configured, 2: capturing, 3: paused, 4: completed, 5: active_with_videos) * description: Statut du projet (0: draft, 1: capture, 2: idle, 3: stopping)
* required: * required:
* - name * - name
* - description * - description