Modifier la fonction getPathList pour utiliser orderId au lieu de id lors de la récupération des chemins
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user