mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
fix: Ensure IntegrationAuthentication is deleted with team
This commit is contained in:
1 parent
70ec8c551e
commit
ee270abbe9
1 file changed
+7
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user