Metrics components refactoring. New event data page.

This commit is contained in:
Mike Cao committed 2023-07-10 04:35:19 -07:00
1 parent 4e6d24e932
commit c865f43b11
47 files changed
+756 -672

No files matched your search

+2 -4
View File
@@ -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,
});
}