Skip to content

Commit fb58d24

Browse files
committed
fix search step
1 parent a9c7fcc commit fb58d24

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Duron is a modern, type-safe background job processing system built with TypeScr
99

1010
## 📚 Documentation
1111

12-
📖 **[View Full Documentation →](https://geut.github.io/duron/)**
12+
📖 **[View Full Documentation →](https://duron-docs.pages.dev/)**
1313

1414
The complete documentation includes detailed guides on actions, adapters, client API, server API, error handling, retries, and more.
1515

packages/duron/src/adapters/postgres/postgres.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,9 +880,11 @@ export class PostgresAdapter extends Adapter {
880880

881881
const where = and(
882882
eq(jobStepsTable.job_id, jobId),
883-
fuzzySearch && fuzzySearch.length > 0 ? ilike(jobStepsTable.name, `%${fuzzySearch}%`) : undefined,
884883
fuzzySearch && fuzzySearch.length > 0
885-
? sql`to_tsvector('english', ${jobStepsTable.output}::text) @@ plainto_tsquery('english', ${fuzzySearch})`
884+
? or(
885+
ilike(jobStepsTable.name, `%${fuzzySearch}%`),
886+
sql`to_tsvector('english', ${jobStepsTable.output}::text) @@ plainto_tsquery('english', ${fuzzySearch})`,
887+
)
886888
: undefined,
887889
options.updatedAfter
888890
? sql`date_trunc('milliseconds', ${jobStepsTable.updated_at}) > ${options.updatedAfter.toISOString()}::timestamptz`

0 commit comments

Comments
 (0)