fix: utils.gc constraint issue, closes #3228
This commit is contained in:
@@ -86,6 +86,13 @@ export default async function teamPermanentDeleter(team: Team) {
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
await Event.destroy({
|
||||
where: {
|
||||
actorId: userIds,
|
||||
},
|
||||
force: true,
|
||||
transaction,
|
||||
});
|
||||
}
|
||||
);
|
||||
// Destory team-relation models
|
||||
|
||||
Reference in New Issue
Block a user