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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user