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,
|
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);
|
||||||
|
|||||||
@@ -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 *;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user