From d03e1ae8d0b5d5cf28baf0e6c691e7d037c92079 Mon Sep 17 00:00:00 2001 From: Aric Lasry Date: Mon, 13 Nov 2023 14:14:30 +0100 Subject: [PATCH] Search Gdrive files by connectorId --- front/production_checks/checks/managed_data_sources_gc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/production_checks/checks/managed_data_sources_gc.ts b/front/production_checks/checks/managed_data_sources_gc.ts index bd5b563b1247..25205b75208e 100644 --- a/front/production_checks/checks/managed_data_sources_gc.ts +++ b/front/production_checks/checks/managed_data_sources_gc.ts @@ -147,7 +147,7 @@ export const CHECK_FILES_BY_TYPE: Record< const dustFileIds = slice.map((d) => d.document_id); const documentsData = await connectorsSequelize.query( - 'SELECT id as "googleDriveFileId", "dustFileId" FROM google_drive_files WHERE "dustFileId" IN (:documentIds)', + 'SELECT id as "googleDriveFileId", "dustFileId" FROM google_drive_files WHERE "dustFileId" IN (:documentIds) and "connectorId" = :connectorId', { replacements: { documentIds: dustFileIds,