Updated types.

This commit is contained in:
Mike Cao committed 2024-01-14 02:21:39 -08:00
1 parent 1e0c177fe6
commit 6b9c83381c
12 files changed
+40 -43

No files matched your search

+2 -2
View File
@@ -45,7 +45,7 @@ export async function getUsers(
options?: { include?: Prisma.UserInclude },
): Promise<FilterResult<User[]>> {
const { teamId, query } = params;
const mode = prisma.getSearchMode();
const mode = prisma.getQueryMode();
const where: Prisma.UserWhereInput = {
...(teamId && {
@@ -61,7 +61,7 @@ export async function getUsers(
{
username: {
contains: query,
...mode,
mode,
},
},
],