mayor cantidad de archivos pedidos
This commit is contained in:
@@ -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++) {
|
||||
|
||||
@@ -99,7 +99,7 @@ const list = (pageToken) => {
|
||||
supportsTeamDrives: true,
|
||||
includeTeamDriveItems: true,
|
||||
spaces: 'drive',
|
||||
pageSize: 100,
|
||||
pageSize: 1000,
|
||||
pageToken,
|
||||
fields: '*',
|
||||
orderBy: 'name',
|
||||
|
||||
Reference in New Issue
Block a user