Skip to content

Commit

Permalink
fix: Search with proposal title (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Jul 17, 2024
1 parent 0fdc458 commit bdba2c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql/operations/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default async function (parent, args) {

let searchSql = '';
if (where.title_contains) {
searchSql = 'AND p.title LIKE ?';
params.push(`%${where.title_contains}%`);
searchSql = 'AND LOWER(p.title) LIKE ?';
params.push(`%${where.title_contains.toLowerCase()}%`);
}

if (where.strategies_contains) {
Expand Down

0 comments on commit bdba2c2

Please sign in to comment.