only get non-deleted teams
This commit is contained in:
@@ -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 },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user