Merge pull request #1945 from automatisch/remove-access-tokens-in-perm-user-deletion

fix: delete access token before hard deleting user
This commit is contained in:
Ali BARIN
2024-07-03 13:16:20 +02:00
committed by GitHub

View File

@@ -40,6 +40,7 @@ export const worker = new Worker(
await user.$relatedQuery('usageData').withSoftDeleted().hardDelete();
}
await user.$relatedQuery('accessTokens').withSoftDeleted().hardDelete();
await user.$query().withSoftDeleted().hardDelete();
},
{ connection: redisConfig }