Skip to content

Commit

Permalink
Fixed search query.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Jan 3, 2025
1 parent 089137e commit 5049c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "umami",
"version": "2.15.1",
"version": "2.16.0",
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
"author": "Umami Software, Inc. <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function getSearchSQL(column: string, param: string = 'search'): string {
const db = getDatabaseType();
const like = db === POSTGRESQL ? 'ilike' : 'like';

return `and ${column} ${like} {{${param}}`;
return `and ${column} ${like} {{${param}}}`;
}

function mapFilter(column: string, operator: string, name: string, type: string = '') {
Expand Down

0 comments on commit 5049c8b

Please sign in to comment.