mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
only get non-deleted teams
This commit is contained in:
parent
bc73410dba
commit
b885f57f40
@ -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 New Issue
Block a user