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,