Refactor account deletion process and improve invitation functionalities

The account deletion process has been refactored to send account deletion emails from the AccountWebhooksService instead of from the deletePersonalAccount service. This has resulted in the addition of the AccountWebhooksService and modification of the seeds.sql file to trigger a webhook after account deletion. Along with this, the account invitation functionalities within the accountInvitations service have been considerably enhanced, making it much clearer and easier to use.
This commit is contained in:
giancarlo
2024-04-09 16:26:50 +08:00
parent 1a3c27326b
commit 5adfb3edac
8 changed files with 193 additions and 96 deletions

View File

@@ -10,7 +10,7 @@
},
"exports": {
"./components": "./src/components/index.ts",
"./webhooks": "./src/server/services/account-invitations-webhook.service.ts"
"./webhooks": "./src/server/services/webhooks/index.ts"
},
"devDependencies": {
"@hookform/resolvers": "^3.3.4",