This commit is contained in:
Danel Kungla
2025-07-31 12:31:58 +03:00
parent 7031bc1176
commit 6ba33a99b2
3 changed files with 1 additions and 21 deletions

View File

@@ -100,17 +100,3 @@ To access admin pages follow these steps:
- [View emails](http://localhost:1080/#/) - [View emails](http://localhost:1080/#/)
- Mail server is running on `localhost:1025` without password - 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();
```

View File

@@ -4,9 +4,3 @@ export interface CompanySubmitData {
email: string; email: string;
phone?: string; phone?: string;
} }
export interface CompanyInvitationData {
invitationToken: string;
email: string;
companyName: string;
}

View File

@@ -187,7 +187,7 @@ class AccountInvitationsService {
throw new Error('Account not found'); throw new Error('Account not found');
} }
console.log('property', invitations, accountSlug);
const response = await this.client const response = await this.client
.schema('medreport') .schema('medreport')
.rpc('add_invitations_to_account', { .rpc('add_invitations_to_account', {