feat: Remove associated access tokens while removing user

This commit is contained in:
Faruk AYDIN
2024-09-03 16:03:48 +03:00
parent 0df5e5283e
commit 33a2386d74

View File

@@ -283,6 +283,7 @@ class User extends Base {
).map((execution) => execution.id);
const flowIds = flows.map((flow) => flow.id);
await this.$relatedQuery('accessTokens').delete();
await ExecutionStep.query().delete().whereIn('execution_id', executionIds);
await this.$relatedQuery('executions').delete();
await this.$relatedQuery('steps').delete();