Parser les identifiants dans getPathList pour assurer un traitement correct des valeurs

This commit is contained in:
2025-02-12 11:16:12 +01:00
parent b2e14b169f
commit c17c939b9c

View File

@@ -94,7 +94,8 @@ async function getPathFromIds(projectId, orderId) {
async function getPathList(IdList, projectId) {
console.log(IdList);
const pathList = [];
for (const orderId of IdList) {
const parsedIdList = IdList.map(id => parseInt(id, 10));
for (const orderId of parsedIdList) {
console.log(orderId);
const path = await getPathFromIds(projectId, orderId);
console.log(path);