Updated types.

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

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,
},
},
],