Skip to content

Commit 84128c2

Browse files
committed
correct args to createProbot
1 parent 0d2d80a commit 84128c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const { getProbotOctoKit } = require('./lib/proxyAwareProbotOctokit')
77
const appFn = require('./')
88

99
module.exports.webhooks = createLambdaFunction(appFn, {
10-
probot: createProbot({ octokit: getProbotOctoKit() })
10+
probot: createProbot({ overrides: { Octokit: getProbotOctoKit() } })
1111
})
1212

1313
module.exports.scheduler = function () {
14-
const probot = createProbot({ octokit: getProbotOctoKit() })
14+
const probot = createProbot({ overrides: { Octokit: getProbotOctoKit() } })
1515
const app = appFn(probot, {})
1616
return app.syncInstallation()
1717
}

0 commit comments

Comments
 (0)