Skip to content

Commit 562ec43

Browse files
committed
Merge branch 'dev' into analytics
2 parents 717ff8f + 2d27333 commit 562ec43

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/lib/prisma.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import debug from 'debug';
2-
import { Prisma } from '@prisma/client';
32
import prisma from '@umami/prisma-client';
43
import { formatInTimeZone } from 'date-fns-tz';
54
import { MYSQL, POSTGRESQL, getDatabaseType } from 'lib/db';
@@ -286,7 +285,7 @@ async function pagedRawQuery(
286285
return { data, count, page: +page, pageSize: size, orderBy };
287286
}
288287

289-
function getQueryMode(): { mode?: Prisma.QueryMode } {
288+
function getQueryMode(): { mode?: 'default' | 'insensitive' } {
290289
const db = getDatabaseType();
291290

292291
if (db === POSTGRESQL) {

src/pages/api/reports/funnel.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ const schema = {
3131
.of(
3232
yup.object().shape({
3333
type: yup.string().required(),
34-
value: yup
35-
.string()
36-
.matches(/^[a-zA-Z0-9/*-_]+$/, 'Invalid URL pattern')
37-
.required(),
34+
value: yup.string().required(),
3835
}),
3936
)
4037
.min(2)

0 commit comments

Comments
 (0)