fix(camera): Mettre à jour le statut du projet en 'idle' lors de l'arrêt de la caméra
All checks were successful
SSH Backend Deploy / ssh-deploy (push) Successful in 9s
All checks were successful
SSH Backend Deploy / ssh-deploy (push) Successful in 9s
This commit is contained in:
@@ -104,7 +104,7 @@ class CameraController {
|
|||||||
const currentProject = await Project.findCurrentRenderingProject();
|
const currentProject = await Project.findCurrentRenderingProject();
|
||||||
|
|
||||||
if (currentProject) {
|
if (currentProject) {
|
||||||
await Project.updateProject(currentProject.id, { status: config.status.waiting });
|
await Project.updateProject(currentProject.id, { status: config.projectStatus.idle});
|
||||||
console.log(`[CAMERA] Projet : ${currentProject.id} arrêté.`);
|
console.log(`[CAMERA] Projet : ${currentProject.id} arrêté.`);
|
||||||
} else {
|
} else {
|
||||||
console.log('[CAMERA] Aucun projet à arrêter.');
|
console.log('[CAMERA] Aucun projet à arrêter.');
|
||||||
|
|||||||
Reference in New Issue
Block a user