Correction de l'appel asynchrone dans la fonction get_path_from_id pour récupérer correctement le chemin à partir de l'ID du projet et de l'ordre.

This commit is contained in:
2025-04-03 13:47:24 +02:00
parent f958e9d491
commit cedd9949bd

View File

@@ -132,7 +132,7 @@ const measurement = {
}, },
get_path_from_id: async function (projectId, orderId) { get_path_from_id: async function (projectId, orderId) {
const query = database_manager.measurement.get_measurement_by_project_and_order_id(projectId, orderId); const query = await database_manager.measurement.get_measurement_by_project_and_order_id(projectId, orderId);
console.log("[FILE] get_path_from_id : " + query.path); console.log("[FILE] get_path_from_id : " + query.path);
console.log("[FILE] get_path_from_id : " + query); console.log("[FILE] get_path_from_id : " + query);
return query.path; return query.path;