Skip to content

Commit

Permalink
🐛 Typo Hubspot Scope
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jul 17, 2024
1 parent a185876 commit f6f3fb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export class HubspotConnectionService implements ICrmConnectionService {
});
if (isNotUnique) return;
//reconstruct the redirect URI that was passed in the frontend it must be the same
const REDIRECT_URI = `${this.env.getPanoraBaseUrl()}/connections/oauth/callback`;
const REDIRECT_URI = `${
this.env.getDistributionMode() == 'selfhost'
? this.env.getWebhookIngress()
: this.env.getPanoraBaseUrl()
}/connections/oauth/callback`;

const CREDENTIALS = (await this.cService.getCredentials(
projectId,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/connectors/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { AuthStrategy, ProvidersConfig } from '../types';
export const CONNECTORS_METADATA: ProvidersConfig = {
'crm': {
'hubspot': {
scopes: 'crm.objects.companies.read crm.objects.companies.write crm.objects.contacts.read crm.objects.contacts.write crm.objects.deals.read crm.objects.deals.write crm.objects.custom.read crm.objects.custom.write crm.objects.leads.read crm.objects.leads.write crm.objects.owners.read crm.objects.users.read crm.objects.users.write sales-email-read',
scopes: 'crm.objects.companies.read crm.objects.companies.write crm.objects.contacts.read crm.objects.contacts.write crm.objects.deals.read crm.objects.deals.write crm.objects.custom.read crm.objects.custom.write crm.objects.leads.read crm.objects.leads.write crm.objects.owners.read crm.objects.users.read crm.objects.users.write oauth sales-email-read',
urls: {
docsUrl: 'https://developers.hubspot.com/docs/api/crm/understanding-the-crm',
authBaseUrl: 'https://app-eu1.hubspot.com/oauth/authorize',
Expand Down

0 comments on commit f6f3fb9

Please sign in to comment.