Skip to content

Commit

Permalink
DOP-4414 testing new promise format
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 20, 2024
1 parent 47d0600 commit 654f59b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
);
}

let returnVal;
try {
await createAndInsertJob();
returnVal = await createAndInsertJob();
} catch (err) {
return {
statusCode: 500,
Expand All @@ -244,7 +245,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
return {
statusCode: 202,
headers: { 'Content-Type': 'text/plain' },
body: 'Smoke Test Jobs Queued ',
body: 'Smoke Test Jobs Queued ' + returnVal,
};
};

Expand Down

0 comments on commit 654f59b

Please sign in to comment.