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
All checks were successful
SSH Backend Deploy / ssh-deploy (push) Successful in 10s
This commit is contained in:
@@ -50,7 +50,7 @@ class CameraController {
|
||||
interval: interval,
|
||||
nb_images: nb_images,
|
||||
stop_flag: false,
|
||||
active: 1 // active = 1 (idle = 0)
|
||||
idle: false // idle = 1 (idle = 0)
|
||||
};
|
||||
|
||||
await Camera.updateCamera(1, newSettings);
|
||||
|
||||
@@ -48,7 +48,7 @@ class Camera {
|
||||
static initializeCamera = wrapDatabaseOperation(async () => {
|
||||
const { defaultSettings } = config.camera;
|
||||
const query = `
|
||||
INSERT INTO camera (id, interval, maintenance, active)
|
||||
INSERT INTO camera (id, interval, maintenance, idle)
|
||||
VALUES ($1, $2, $3, $4)
|
||||
ON CONFLICT (id) DO NOTHING
|
||||
RETURNING *;
|
||||
|
||||
@@ -147,7 +147,7 @@ router.get('/projects/:id/measurements', ProjectController.getProjectMeasurement
|
||||
* description: Description détaillée du projet
|
||||
* status:
|
||||
* 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:
|
||||
* - name
|
||||
* - description
|
||||
|
||||
Reference in New Issue
Block a user