mayor cantidad de archivos pedidos

This commit is contained in:
2021-01-19 21:26:49 -06:00
parent 21900828c2
commit eff87a209f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ const Servicio = require('../db/tablas/Servicio');
const borrarCarpetas = async () => {
await Usuario.findAll({ where: { idTipoUsuario: 3 } }).then(async (res) => {
console.log(`Tenemos ${res.length} alumnos`);
for (let i = 0; i < res.length; i++) {
let carpetasAlumno = await drive.buscarCarpetas(res[i].usuario);
@@ -15,7 +16,7 @@ const borrarCarpetas = async () => {
let archivos = await drive.archivosCarpeta(carpetasAlumno[j].id);
console.log(
`La carpeta ${carpetasAlumno[j].name} con id ${carpetasAlumno[j].id} tiene ${carpetasAlumno[j].length} archivos.`
`La carpeta ${carpetasAlumno[j].name} con id ${carpetasAlumno[j].id} tiene ${archivos.length} archivos.`
);
if (j > 0) {
for (let k = 0; k < archivos.length; k++) {
+1 -1
View File
@@ -99,7 +99,7 @@ const list = (pageToken) => {
supportsTeamDrives: true,
includeTeamDriveItems: true,
spaces: 'drive',
pageSize: 100,
pageSize: 1000,
pageToken,
fields: '*',
orderBy: 'name',