From f4d02d3481eb5393ad8a0aa6b0768a9eb5f7630b Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:54:18 -0400 Subject: [PATCH] DOP-4549 return immediately from deployrepo --- api/controllers/v1/slack.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/controllers/v1/slack.ts b/api/controllers/v1/slack.ts index e39ba093e..2b33e79dd 100644 --- a/api/controllers/v1/slack.ts +++ b/api/controllers/v1/slack.ts @@ -190,16 +190,15 @@ export const getDeployableJobs = async ( }; export const DeployRepo = async (event: any = {}): Promise => { - 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!');