Skip to content

Commit

Permalink
refactor: update page token variable names and adjust batch size for …
Browse files Browse the repository at this point in the history
…OneDrive services
  • Loading branch information
amuwal committed Dec 21, 2024
1 parent 6d13386 commit 1f0ac35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class GoogleDriveService implements IFileService {
const {
linkedUserId,
query,
pageTokenFiles,
pageToken,
pageTokenFolders,
connectionId,
custom_field_mappings,
Expand All @@ -284,7 +284,7 @@ export class GoogleDriveService implements IFileService {
custom_field_mappings,
ingestParams,
},
pageTokenFiles,
pageToken,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class OnedriveService implements IFileService {
): Promise<OnedriveFileOutput[]> {
const allPermissions: OnedrivePermissionOutput[] = [];
const fileIdToRemotePermissionIdMap: Map<string, string[]> = new Map();
const batchSize = 10; // simultaneous requests
const batchSize = 4; // simultaneous requests

const files = allFiles.filter((f) => !f.deleted);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class GoogleDriveFolderService implements IFolderService {

const lastSyncTime = await this.getLastSyncTime(connection.id_connection);
const isFirstSync = !lastSyncTime;
const folders = isFirstSync
const folders = !isFirstSync
? await this.getFoldersIncremental(
auth,
connection.id_connection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class OnedriveService implements IFolderService {
): Promise<OnedriveFolderOutput[]> {
const allPermissions: OnedrivePermissionOutput[] = [];
const folderIdToRemotePermissionIdMap: Map<string, string[]> = new Map();
const batchSize = 10; // simultaneous requests
const batchSize = 4; // simultaneous requests

const folders = allFolders.filter((f) => !f.deleted);

Expand Down

0 comments on commit 1f0ac35

Please sign in to comment.