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) {
|
async function getPathList(IdList, projectId) {
|
||||||
console.log(IdList);
|
console.log(IdList);
|
||||||
const pathList = [];
|
const pathList = [];
|
||||||
for (const orderId of IdList) {
|
const parsedIdList = IdList.map(id => parseInt(id, 10));
|
||||||
|
for (const orderId of parsedIdList) {
|
||||||
console.log(orderId);
|
console.log(orderId);
|
||||||
const path = await getPathFromIds(projectId, orderId);
|
const path = await getPathFromIds(projectId, orderId);
|
||||||
console.log(path);
|
console.log(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user