Hide other reports.

This commit is contained in:
Mike Cao 2023-07-10 09:54:51 -07:00
parent cabff7924e
commit 97c57696ff
6 changed files with 205 additions and 92 deletions

View file

@ -13,7 +13,7 @@ export async function getReportById(reportId: string): Promise<Report> {
});
}
export async function getReports(where: Prisma.ReportWhereUniqueInput): Promise<Report[]> {
export async function getReports(where: Prisma.ReportWhereInput): Promise<Report[]> {
return prisma.client.report.findMany({
where,
});