From 5c2eb954fa07d75521cf97f4afb97fa186e192ed Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Mon, 13 Nov 2023 19:41:21 -0800 Subject: [PATCH] fix: Actually fix the disabled pipeline filtering --- packages/meta-service-postgres/makePostgresMetaService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/meta-service-postgres/makePostgresMetaService.ts b/packages/meta-service-postgres/makePostgresMetaService.ts index b7738bd9..d1f419cc 100644 --- a/packages/meta-service-postgres/makePostgresMetaService.ts +++ b/packages/meta-service-postgres/makePostgresMetaService.ts @@ -131,7 +131,7 @@ export const makePostgresMetaService = zFunction( ) }, - findPipelines: ({resourceIds, secondsSinceLastSync}) => { + findPipelines: ({resourceIds, secondsSinceLastSync, includeDisabled}) => { const {runQueries, sql} = _getDeps(opts) const ids = resourceIds && sql.array(resourceIds, 'varchar') const conditions = R.compact([ @@ -141,7 +141,7 @@ export const makePostgresMetaService = zFunction( (now() - COALESCE(last_sync_completed_at, to_timestamp(0))) >= (interval '1 second' * ${secondsSinceLastSync}) `, - // !includeDisabled && 'disabled IS NOT TRUE', + !includeDisabled && sql`disabled IS NOT TRUE`, ]) const where = conditions.length > 0