Removed getMessage from errors.
This commit is contained in:
1 parent
be319322c0
commit
7bb89b28be
3 files changed
+6
-6
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user