fix: teamPermanentDeleter execution order
This commit is contained in:
@@ -112,6 +112,13 @@ async function teamPermanentDeleter(team: Team) {
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await FileOperation.destroy({
|
||||
where: {
|
||||
teamId,
|
||||
},
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await Collection.destroy({
|
||||
where: {
|
||||
teamId,
|
||||
@@ -126,13 +133,6 @@ async function teamPermanentDeleter(team: Team) {
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await FileOperation.destroy({
|
||||
where: {
|
||||
teamId,
|
||||
},
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await Group.unscoped().destroy({
|
||||
where: {
|
||||
teamId,
|
||||
|
||||
Reference in New Issue
Block a user