Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Jul 15, 2024
1 parent cef2e5f commit 560cc45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connectors/src/connectors/microsoft/temporal/activities.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { CoreAPIDataSourceDocumentSection, ModelId } from "@dust-tt/types";
import { cacheWithRedis } from "@dust-tt/types";
import type { Client } from "@microsoft/microsoft-graph-client";
import axios from "axios";
import mammoth from "mammoth";
import type { Logger } from "pino";
Expand Down Expand Up @@ -43,8 +45,6 @@ import {
MicrosoftRootResource,
} from "@connectors/resources/microsoft_resource";
import type { DataSourceConfig } from "@connectors/types/data_source_config";
import { Client } from "@microsoft/microsoft-graph-client";
import { start } from "repl";

const FILES_SYNC_CONCURRENCY = 10;

Expand Down Expand Up @@ -619,6 +619,7 @@ async function getParents({
* fetches can be made a lot of times during a sync, cache for 10mins in a
* per-sync basis (given by startSyncTs) */
const getParentParentId = cacheWithRedis(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async (connectorId, parentInternalId, startSyncTs) => {
const parent = await MicrosoftNodeResource.fetchByInternalId(
connectorId,
Expand Down

0 comments on commit 560cc45

Please sign in to comment.