Fixed reports queries.
This commit is contained in:
1 parent
40970f6c33
commit
87bb9b1e73
5 files changed
+21
-13
No files matched your search
@@ -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: [
|
||||
|
||||
Reference in new issue
Block a user