Metrics components refactoring. New event data page.
This commit is contained in:
@@ -13,11 +13,9 @@ export async function getReportById(reportId: string): Promise<Report> {
|
||||
});
|
||||
}
|
||||
|
||||
export async function getReports(userId: string): Promise<Report[]> {
|
||||
export async function getReports(where: Prisma.ReportWhereUniqueInput): Promise<Report[]> {
|
||||
return prisma.client.report.findMany({
|
||||
where: {
|
||||
userId,
|
||||
},
|
||||
where,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user