Fixed team counts.

This commit is contained in:
Mike Cao 2024-01-26 09:00:39 -08:00
parent c6e52c247c
commit bd87f287e9

View file

@ -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 },
},
},
},
}, },
}, },
}, },