Ajouter le project_id à la requête de récupération des vidéos et mettre à jour la fonction getPathList pour l'utiliser

This commit is contained in:
2025-02-12 10:59:54 +01:00
parent bc2159f5f9
commit 8b0de65272
2 changed files with 9 additions and 4 deletions

View File

@@ -91,10 +91,12 @@ async function getPathFromIds(projectId, orderId) {
return res.rows[0].path;
}
async function getPathList(IdList) {
async function getPathList(IdList, projectId) {
console.log(IdList);
const pathList = [];
for (const id of IdList) {
const path = await getPathFromIds(id);
const path = await getPathFromIds(projectId, id);
console.log(path);
pathList.push(path);
}
return pathList;