mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Convert /api/users.
This commit is contained in:
parent
090abcff81
commit
baa3851fb4
61 changed files with 1064 additions and 70 deletions
|
|
@ -30,11 +30,11 @@ export async function getWebsites(
|
|||
criteria: WebsiteFindManyArgs,
|
||||
pageParams: PageParams,
|
||||
): Promise<PageResult<Website[]>> {
|
||||
const { query } = pageParams;
|
||||
const { search } = pageParams;
|
||||
|
||||
const where: Prisma.WebsiteWhereInput = {
|
||||
...criteria.where,
|
||||
...prisma.getSearchParameters(query, [
|
||||
...prisma.getSearchParameters(search, [
|
||||
{
|
||||
name: 'contains',
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue