nuevo servicio especial listo

This commit is contained in:
2021-02-10 16:45:15 -06:00
parent 027fddf9cc
commit f76237ea20
8 changed files with 162 additions and 38 deletions
+1 -8
View File
@@ -166,11 +166,7 @@ const archivosFicheros = async () => {
do {
let response = await list(pageToken);
for (let i = 0; i < response.files.length; i++) {
if (response.files[i].mimeType === 'application/vnd.google-apps.folder')
carpetas.push(response.files[i]);
else pdf.push(response.files[i]);
}
console.log(response);
if (response.nextPageToken) pageToken = response.nextPageToken;
else pageToken = '';
} while (pageToken);
@@ -183,7 +179,4 @@ const archivosFicheros = async () => {
module.exports = {
folder,
uploadFile,
deleteFile,
update,
archivosFicheros,
};