Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Oct 31, 2023
1 parent ac33478 commit 3869c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
if (path.split('/').length > 1) continue;

try {
createAndInsertJob(`/${path}`);
await createAndInsertJob(`/${path}`);
} catch (err) {
return {
statusCode: 500,
Expand All @@ -159,7 +159,7 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
}

try {
createAndInsertJob();
await createAndInsertJob();
} catch (err) {
return {
statusCode: 500,
Expand Down

0 comments on commit 3869c4f

Please sign in to comment.