diff --git a/README.md b/README.md index 1a9499b..4fba666 100644 --- a/README.md +++ b/README.md @@ -100,17 +100,3 @@ To access admin pages follow these steps: - [View emails](http://localhost:1080/#/) - Mail server is running on `localhost:1025` without password - -## Webhook - -Webhooks requires specific envs in supabase. Add the following in sql editor: - -```sql -alter system set webhook.invitations.secret = 'WEBHOOKSECRET'; -``` - -```sql -alter system set webhook.invitations.url = 'http://host.docker.internal:3000/api/db/webhook'; - -select pg_reload_conf(); -``` diff --git a/lib/types/company.ts b/lib/types/company.ts index 1230e67..7fbc4d6 100644 --- a/lib/types/company.ts +++ b/lib/types/company.ts @@ -4,9 +4,3 @@ export interface CompanySubmitData { email: string; phone?: string; } - -export interface CompanyInvitationData { - invitationToken: string; - email: string; - companyName: string; -} diff --git a/packages/features/team-accounts/src/server/services/account-invitations.service.ts b/packages/features/team-accounts/src/server/services/account-invitations.service.ts index ea18e78..c707f84 100644 --- a/packages/features/team-accounts/src/server/services/account-invitations.service.ts +++ b/packages/features/team-accounts/src/server/services/account-invitations.service.ts @@ -187,7 +187,7 @@ class AccountInvitationsService { throw new Error('Account not found'); } - console.log('property', invitations, accountSlug); + const response = await this.client .schema('medreport') .rpc('add_invitations_to_account', {