primer intento agregar idCarpeta
This commit is contained in:
@@ -58,6 +58,45 @@ const getAlumnosNull = async () => {
|
||||
}
|
||||
|
||||
|
||||
duplicados()
|
||||
getAlumnosNull()
|
||||
const insertIdCarpetas = async ()=>{
|
||||
getAlumnosNull()
|
||||
.then ((alumnos)=>{
|
||||
|
||||
getCarpetas()
|
||||
.then((carpetas)=>{
|
||||
console.log(alumnos) // alumnos con carpeta null
|
||||
console.log(carpetas) // carpetas disponibles en drive (este array aun tiene carpetas repetidas)
|
||||
|
||||
for(let i= 0; i < alumnos.length; i++){
|
||||
for(let j= 0; j < carpetas.length; j++){
|
||||
if(alumnos[i] == carpetas[j].name ){
|
||||
console.log(alumnos[i]) // alumnos qno tienen carpeta pero si existe su carpeta
|
||||
|
||||
|
||||
/* return Servicio.findAll({
|
||||
where:{carpeta:null},
|
||||
include: [
|
||||
{ model: Usuario, where:{idUsuario:alumnos[i]} },
|
||||
],
|
||||
})
|
||||
.then((res)=>{
|
||||
console.log(res)
|
||||
|
||||
}) */
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
//duplicados()
|
||||
//getAlumnosNull()
|
||||
insertIdCarpetas()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user