Skip to content

Commit

Permalink
Merge branch 'dev' into analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Dec 18, 2024
2 parents 717ff8f + 2d27333 commit 562ec43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/lib/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import debug from 'debug';
import { Prisma } from '@prisma/client';
import prisma from '@umami/prisma-client';
import { formatInTimeZone } from 'date-fns-tz';
import { MYSQL, POSTGRESQL, getDatabaseType } from 'lib/db';
Expand Down Expand Up @@ -286,7 +285,7 @@ async function pagedRawQuery(
return { data, count, page: +page, pageSize: size, orderBy };
}

function getQueryMode(): { mode?: Prisma.QueryMode } {
function getQueryMode(): { mode?: 'default' | 'insensitive' } {
const db = getDatabaseType();

if (db === POSTGRESQL) {
Expand Down
5 changes: 1 addition & 4 deletions src/pages/api/reports/funnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const schema = {
.of(
yup.object().shape({
type: yup.string().required(),
value: yup
.string()
.matches(/^[a-zA-Z0-9/*-_]+$/, 'Invalid URL pattern')
.required(),
value: yup.string().required(),
}),
)
.min(2)
Expand Down

0 comments on commit 562ec43

Please sign in to comment.