Removed getMessage from errors.

This commit is contained in:
Mike Cao 2025-02-19 19:11:11 -08:00
parent be319322c0
commit 7bb89b28be
3 changed files with 6 additions and 6 deletions

View file

@ -51,11 +51,11 @@ export async function getUsers(
criteria: UserFindManyArgs,
pageParams?: PageParams,
): Promise<PageResult<User[]>> {
const { query } = pageParams;
const { search } = pageParams;
const where: Prisma.UserWhereInput = {
...criteria.where,
...prisma.getSearchParameters(query, [{ username: 'contains' }]),
...prisma.getSearchParameters(search, [{ username: 'contains' }]),
deletedAt: null,
};