diff --git a/server/commands/teamPermanentDeleter.js b/server/commands/teamPermanentDeleter.js index 24d8d954..99839088 100644 --- a/server/commands/teamPermanentDeleter.js +++ b/server/commands/teamPermanentDeleter.js @@ -14,6 +14,7 @@ import { User, UserAuthentication, Integration, + IntegrationAuthentication, SearchQuery, Share, } from "../models"; @@ -130,6 +131,12 @@ export default async function teamPermanentDeleter(team: Team) { transaction, }); + await IntegrationAuthentication.destroy({ + where: { teamId }, + force: true, + transaction, + }); + await NotificationSetting.destroy({ where: { teamId }, force: true,