From fc04f8a3dd13256919c4734789409b1503df1201 Mon Sep 17 00:00:00 2001 From: filou Date: Tue, 16 Jul 2024 14:54:06 +0200 Subject: [PATCH] review --- connectors/src/connectors/microsoft/temporal/activities.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/connectors/src/connectors/microsoft/temporal/activities.ts b/connectors/src/connectors/microsoft/temporal/activities.ts index db5e1ca80701..dd6e13d92530 100644 --- a/connectors/src/connectors/microsoft/temporal/activities.ts +++ b/connectors/src/connectors/microsoft/temporal/activities.ts @@ -47,6 +47,7 @@ import { import type { DataSourceConfig } from "@connectors/types/data_source_config"; const FILES_SYNC_CONCURRENCY = 10; +const PARENT_SYNC_CACHE_TTL_MS = 10 * 60 * 1000; export async function getSiteNodesToSync( connectorId: ModelId @@ -123,8 +124,8 @@ export async function getSiteNodesToSync( ); // for all folders, check if a parent folder or drive is already in the list, - // in which case remove it this can happen because when a user selects a - // folder to sync, then a parent folder, both are storeed in Microsoft Roots + // in which case remove it. This can happen because when a user selects a + // folder to sync, then a parent folder, both are stored in Microsoft Roots // table // Keeping them both in the sync list can result in various kinds of issues, @@ -637,7 +638,7 @@ const getParentParentId = cacheWithRedis( }, (connectorId, parentInternalId, startSyncTs) => `microsoft-${connectorId}-parent-${parentInternalId}-syncms-${startSyncTs}`, - 10 * 60 * 1000 + PARENT_SYNC_CACHE_TTL_MS ); async function handlePptxFile(