Add missing team->user constraint (#4411)
* Add missing team->user constraint * fix: teamPermanentDeleter cannot complete when team has domains
This commit is contained in:
@@ -175,13 +175,6 @@ async function teamPermanentDeleter(team: Team) {
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await User.destroy({
|
||||
where: {
|
||||
teamId,
|
||||
},
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await team.destroy({
|
||||
force: true,
|
||||
transaction,
|
||||
|
||||
Reference in New Issue
Block a user