Skip to content

Commit 5e61de3

Browse files
waydelyleclaude
andcommitted
Fix remaining ANY/ALL array errors in tasks search path
The Meilisearch-indexed bid count query also used ANY() with a JS array. Replace with IN + sql.join() like the main query path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d5ebf54 commit 5e61de3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/api/src/routes/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.get('/', async (c) => {
5151
const bidCountRows = await db.execute(sql`
5252
SELECT ${taskBids.taskId} AS task_id, COUNT(*)::int AS bid_count
5353
FROM ${taskBids}
54-
WHERE ${taskBids.taskId} = ANY(${indexed.ids})
54+
WHERE ${taskBids.taskId} IN (${sql.join(indexed.ids.map((id: string) => sql`${id}`), sql`, `)})
5555
GROUP BY ${taskBids.taskId}
5656
`);
5757

0 commit comments

Comments
 (0)