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