clean
This commit is contained in:
14
README.md
14
README.md
@@ -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();
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -4,9 +4,3 @@ export interface CompanySubmitData {
|
|||||||
email: string;
|
email: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CompanyInvitationData {
|
|
||||||
invitationToken: string;
|
|
||||||
email: string;
|
|
||||||
companyName: string;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user