Fixed reports queries.

This commit is contained in:
Mike Cao 2024-01-30 02:10:23 -08:00
parent 40970f6c33
commit 87bb9b1e73
5 changed files with 21 additions and 13 deletions

View file

@ -24,9 +24,9 @@ export async function getReports(
const { query, userId, websiteId } = filters;
const where: Prisma.ReportWhereInput = {
...criteria.where,
userId,
websiteId,
...criteria.where,
AND: [
{
OR: [