diff --git a/api/controllers/v2/github.ts b/api/controllers/v2/github.ts index 9b84b4ec7..52fd9f06e 100644 --- a/api/controllers/v2/github.ts +++ b/api/controllers/v2/github.ts @@ -53,7 +53,7 @@ async function prepGithubPushPayload( }; } -exports.TriggerBuild = async (event: APIGatewayEvent): Promise => { +module.exports.TriggerBuild = async (event: APIGatewayEvent): Promise => { const client = new mongodb.MongoClient(c.get('dbUrl')); await client.connect(); const db = client.db(c.get('dbName'));