Skip to content

Commit

Permalink
remove the delete, leaving it for another task
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Dec 19, 2024
1 parent 5cf7c52 commit 4e46a14
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions connectors/src/connectors/google_drive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ import {
} from "@connectors/connectors/interface";
import { dataSourceConfigFromConnector } from "@connectors/lib/api/data_source_config";
import { concurrentExecutor } from "@connectors/lib/async_utils";
import {
deleteDataSourceFolder,
upsertDataSourceFolder,
} from "@connectors/lib/data_sources";
import { upsertDataSourceFolder } from "@connectors/lib/data_sources";
import {
GoogleDriveConfig,
GoogleDriveFiles,
Expand Down Expand Up @@ -222,12 +219,6 @@ export class GoogleDriveConnectorManager extends BaseConnectorManager<null> {
);
}

// cleaning up the Shared With Me folder
await deleteDataSourceFolder({
dataSourceConfig: dataSourceConfigFromConnector(connector),
folderId: getInternalId(GOOGLE_DRIVE_SHARED_WITH_ME_VIRTUAL_ID),
});

// Google revocation requires refresh tokens so would have to happen in `oauth`. But Google
// Drive does not rely on webhooks anymore so we can just delete the connector.

Expand Down

0 comments on commit 4e46a14

Please sign in to comment.