Skip to content

Commit

Permalink
DOP-4549 return immediately from deployrepo
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 25, 2024
1 parent 6cf2a3a commit f4d02d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,15 @@ export const getDeployableJobs = async (
};

export const DeployRepo = async (event: any = {}): Promise<any> => {
const consoleLogger = new ConsoleLogger();
const slackConnector = new SlackConnector(consoleLogger, c);
consoleLogger.info('line 190', 'testing request received');
consoleLogger.info('event', JSON.stringify(event));

return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
body: 'success!',
};
const consoleLogger = new ConsoleLogger();
const slackConnector = new SlackConnector(consoleLogger, c);
consoleLogger.info('line 190', 'testing request received');
consoleLogger.info('event', JSON.stringify(event));

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

0 comments on commit f4d02d3

Please sign in to comment.