diff --git a/app/integrations/google_workspace/google_drive.py b/app/integrations/google_workspace/google_drive.py index dfc4da78..ab4d0c05 100644 --- a/app/integrations/google_workspace/google_drive.py +++ b/app/integrations/google_workspace/google_drive.py @@ -278,11 +278,11 @@ def list_folders_in_folder(folder): ) .execute() ) - all_files.extend(results.get('files', [])) - page_token = results.get('nextPageToken') + all_files.extend(results.get("files", [])) + page_token = results.get("nextPageToken") if not page_token: break - return results.get("files", []) + return all_files @handle_google_api_errors