Skip to content

Commit

Permalink
fix: Actually fix the disabled pipeline filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Nov 14, 2023
1 parent 45fd98b commit 5c2eb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/meta-service-postgres/makePostgresMetaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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
Expand Down

1 comment on commit 5c2eb95

@vercel
Copy link

@vercel vercel bot commented on 5c2eb95 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

venice – ./

venice-venice.vercel.app
usevenice.vercel.app
venice-git-production-venice.vercel.app
app.venice.is

Please sign in to comment.