only get non-deleted teams

This commit is contained in:
Francis Cao 2024-02-07 14:22:38 -08:00
parent bc73410dba
commit b885f57f40

View File

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