Removed getMessage from errors.

This commit is contained in:
Mike Cao committed 2025-02-19 19:11:11 -08:00
1 parent be319322c0
commit 7bb89b28be
3 files changed
+6 -6

No files matched your search

+2 -2
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,
};