From 560cc45362c5d4d959831c95e032cef63b029667 Mon Sep 17 00:00:00 2001 From: filou Date: Mon, 15 Jul 2024 22:29:10 +0200 Subject: [PATCH] clean --- connectors/src/connectors/microsoft/temporal/activities.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connectors/src/connectors/microsoft/temporal/activities.ts b/connectors/src/connectors/microsoft/temporal/activities.ts index fe394783cf7c..ce4ae3df73c5 100644 --- a/connectors/src/connectors/microsoft/temporal/activities.ts +++ b/connectors/src/connectors/microsoft/temporal/activities.ts @@ -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"; @@ -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; @@ -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,