Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Mike Cao 2023-07-01 22:03:01 -07:00
commit 7c467db27e

View File

@ -198,10 +198,17 @@ export async function deleteUser(
}), }),
client.teamUser.deleteMany({ client.teamUser.deleteMany({
where: { where: {
OR: [
{
teamId: { teamId: {
in: teamIds, in: teamIds,
}, },
}, },
{
userId,
},
],
},
}), }),
client.team.deleteMany({ client.team.deleteMany({
where: { where: {