diff --git a/server/commands/teamPermanentDeleter.ts b/server/commands/teamPermanentDeleter.ts index 2b342c51e..d67f2ba3e 100644 --- a/server/commands/teamPermanentDeleter.ts +++ b/server/commands/teamPermanentDeleter.ts @@ -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