mirror of
https://github.com/documenso/documenso.git
synced 2026-07-15 07:17:09 +10:00
fix: scope organisation group deletion (#3047)
This commit is contained in:
@@ -85,6 +85,7 @@ export const deleteTeam = async ({ userId, teamId }: DeleteTeamOptions) => {
|
||||
// Purge all internal organisation groups that have no teams.
|
||||
await tx.organisationGroup.deleteMany({
|
||||
where: {
|
||||
organisationId: team.organisationId,
|
||||
type: OrganisationGroupType.INTERNAL_TEAM,
|
||||
teamGroups: {
|
||||
none: {},
|
||||
|
||||
Reference in New Issue
Block a user