Modifier la fonction getPathList pour utiliser orderId au lieu de id lors de la récupération des chemins

This commit is contained in:
2025-02-12 11:05:25 +01:00
parent 8b0de65272
commit eb63c84443
4 changed files with 36 additions and 3 deletions

View File

@@ -94,8 +94,9 @@ async function getPathFromIds(projectId, orderId) {
async function getPathList(IdList, projectId) {
console.log(IdList);
const pathList = [];
for (const id of IdList) {
const path = await getPathFromIds(projectId, id);
for (const orderId of IdList) {
console.log(orderId);
const path = await getPathFromIds(projectId, orderId);
console.log(path);
pathList.push(path);
}