Skip to content

Commit

Permalink
DOP-4549-b add early return
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 30, 2024
1 parent c1853fb commit 11e0af1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ export const DeployRepo = async (event: any = {}): Promise<any> => {
const decoded = decodeURIComponent(event.body).split('=')[1];
const parsed = JSON.parse(decoded);
const stateValues = parsed.view.state.values;
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
};

//TODO: create an interface for slack view_submission payloads
if (parsed.type !== 'view_submission') {
Expand Down

0 comments on commit 11e0af1

Please sign in to comment.