Fixed team counts.
This commit is contained in:
1 parent
c6e52c247c
commit
bd87f287e9
1 file changed
+10
-1
@@ -169,7 +169,16 @@ export async function getTeamsByUserId(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
_count: {
|
_count: {
|
||||||
select: { website: true, teamUser: true },
|
select: {
|
||||||
|
website: {
|
||||||
|
where: { deletedAt: null },
|
||||||
|
},
|
||||||
|
teamUser: {
|
||||||
|
where: {
|
||||||
|
user: { deletedAt: null },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user