Parser les identifiants dans getPathList pour assurer un traitement correct des valeurs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user