mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fixed team counts.
This commit is contained in:
parent
c6e52c247c
commit
bd87f287e9
1 changed files with 10 additions and 1 deletions
|
|
@ -169,7 +169,16 @@ export async function getTeamsByUserId(
|
|||
},
|
||||
},
|
||||
_count: {
|
||||
select: { website: true, teamUser: true },
|
||||
select: {
|
||||
website: {
|
||||
where: { deletedAt: null },
|
||||
},
|
||||
teamUser: {
|
||||
where: {
|
||||
user: { deletedAt: null },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue