Skip to content

Commit

Permalink
fix: forgot to use $1 in SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Jul 29, 2024
1 parent 73da6bc commit 389ee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/backend/postgres/queries.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ pub fn module_search(db: pgo.Connection, q: String) {
FROM package_release r
JOIN package_module m
ON m.package_release_id = r.id
WHERE m.name LIKE '%' || 'cake' || '%'
WHERE m.name LIKE '%' || $1 || '%'
AND version SIMILAR TO '[0-9]*.[0-9]*.[0-9]*'
AND r.id = m.package_release_id
)
Expand Down

0 comments on commit 389ee44

Please sign in to comment.