Skip to content

Commit

Permalink
Search Gdrive files by connectorId
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric committed Nov 13, 2023
1 parent 349908d commit d03e1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/production_checks/checks/managed_data_sources_gc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d03e1ae

Please sign in to comment.