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 13, 2023
1 parent 3ad5304 commit a406a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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(
};
}

exports.TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayProxyResult> => {
module.exports.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

0 comments on commit a406a2b

Please sign in to comment.