Skip to content

Commit

Permalink
DOP-4549 don't return early
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 30, 2024
1 parent 5309e04 commit a4da331
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,7 @@ export const DeployRepo = async (event: any = {}): Promise<any> => {
return prepResponse(401, 'text/plain', e);
}
const deployable = await getDeployableJobs(values, entitlement, repoBranchesRepository, docsetsRepository);
console.log('DEPLOYABLE' + deployable);
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
};
console.log('DEPLOYABLE' + JSON.stringify(deployable));

if (deployable.length > 0) {
await deployRepo(deployable, consoleLogger, jobRepository, c.get('jobsQueueUrl'));
Expand Down

0 comments on commit a4da331

Please sign in to comment.