Skip to content

Commit

Permalink
Use module.exports
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Oct 12, 2023
1 parent 7bd449e commit 6787d74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function prepGithubPushPayload(
};
}

export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayProxyResult> => {
const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayProxyResult> => {
const client = new mongodb.MongoClient(c.get('dbUrl'));
await client.connect();
const db = client.db(c.get('dbName'));
Expand Down Expand Up @@ -142,3 +142,5 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
};

export const MarkBuildArtifactsForDeletion = markBuildArtifactsForDeletion;

module.exports = { TriggerBuild };

0 comments on commit 6787d74

Please sign in to comment.