Skip to content

Commit

Permalink
DOP-4549 return earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 18, 2024
1 parent fe9ed63 commit 6cf2a3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ export const DeployRepo = async (event: any = {}): Promise<any> => {
consoleLogger.info('line 190', 'testing request received');
consoleLogger.info('event', JSON.stringify(event));

return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
body: 'success!',
};

if (!slackConnector.validateSlackRequest(event)) {
return prepResponse(401, 'text/plain', 'Signature Mismatch, Authentication Failed!');
}
Expand Down

0 comments on commit 6cf2a3a

Please sign in to comment.