Skip to content

Commit

Permalink
DOP-4549 added logs, return later
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 30, 2024
1 parent 10d9716 commit 35cf5b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ export const DeployRepo = async (event: any = {}): Promise<any> => {
const stateValues = parsed.view.state.values;
console.log(JSON.stringify(stateValues));

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

//TODO: create an interface for slack view_submission payloads
if (parsed.type !== 'view_submission') {
return prepResponse(200, 'text/plain', 'Form not submitted, will not process request');
Expand All @@ -220,6 +215,11 @@ export const DeployRepo = async (event: any = {}): Promise<any> => {

let values = [];
const isAdmin = await repoEntitlementRepository.getIsAdmin(parsed.user.id);

return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
};
try {
values = await slackConnector.parseSelection(stateValues, isAdmin, repoBranchesRepository);
} catch (e) {
Expand Down

0 comments on commit 35cf5b2

Please sign in to comment.