mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
only get non-deleted teams
This commit is contained in:
parent
bc73410dba
commit
b885f57f40
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ export async function getUserTeams(userId: string, filters: TeamSearchFilter = {
|
||||||
return getTeams(
|
return getTeams(
|
||||||
{
|
{
|
||||||
where: {
|
where: {
|
||||||
|
deletedAt: null,
|
||||||
teamUser: {
|
teamUser: {
|
||||||
some: { userId },
|
some: { userId },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue