Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed search query.

Mike Cao5049c8b671b0
diff --git a/package.json b/package.json
index b42831aa1..932eb300b 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/lib/prisma.ts b/src/lib/prisma.ts
index f17be3b66..cc1b8734d 100644
--- a/src/lib/prisma.ts
+++ b/src/lib/prisma.ts
@@ -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 = '') {