mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
Updated types.
This commit is contained in:
parent
1e0c177fe6
commit
6b9c83381c
12 changed files with 40 additions and 43 deletions
|
|
@ -86,7 +86,7 @@ export async function getTeams(
|
|||
options?: { include?: Prisma.TeamInclude },
|
||||
): Promise<FilterResult<Team[]>> {
|
||||
const { userId, query } = filters;
|
||||
const mode = prisma.getSearchMode();
|
||||
const mode = prisma.getQueryMode();
|
||||
|
||||
const where: Prisma.TeamWhereInput = {
|
||||
...(userId && {
|
||||
|
|
@ -98,7 +98,7 @@ export async function getTeams(
|
|||
AND: {
|
||||
OR: [
|
||||
{
|
||||
name: { startsWith: query, ...mode },
|
||||
name: { startsWith: query, mode },
|
||||
},
|
||||
{
|
||||
teamUser: {
|
||||
|
|
@ -107,7 +107,7 @@ export async function getTeams(
|
|||
user: {
|
||||
username: {
|
||||
startsWith: query,
|
||||
...mode,
|
||||
mode,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue