Skip to content

Commit

Permalink
Patch Netlify integration cases, add new docs for Heroku, Vercel, and…
Browse files Browse the repository at this point in the history
… Netlify
  • Loading branch information
dangtony98 committed Dec 21, 2022
1 parent 45f92bd commit 78a5242
Show file tree
Hide file tree
Showing 17 changed files with 187 additions and 240 deletions.
6 changes: 3 additions & 3 deletions backend/src/helpers/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ const handleOAuthExchangeHelper = async ({
if (!bot) throw new Error('Bot must be enabled for OAuth2 code-token exchange');

// exchange code for access and refresh tokens
let res = await exchangeCode({
const res = await exchangeCode({
integration,
code
});

let update: Update = {
const update: Update = {
workspace: workspaceId,
integration
}
Expand Down Expand Up @@ -138,7 +138,7 @@ const syncIntegrationsHelper = async ({
// to that integration
for await (const integration of integrations) {
// get workspace, environment (shared) secrets
const secrets = await BotService.getSecrets({
const secrets = await BotService.getSecrets({ // issue here?
workspaceId: integration.workspace.toString(),
environment: integration.environment
});
Expand Down
Loading

0 comments on commit 78a5242

Please sign in to comment.