Skip to content

Commit 8b32674

Browse files
authored
Merge pull request #289 from scientist-softserv/135-no-webhooks-in-dev
135 no webhooks in dev
2 parents cc7a63e + 98452c9 commit 8b32674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/api/auth/[...nextauth].js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const authOptions = {
3333
// Triggered on the initial sign in
3434
if (account && user) {
3535
// add the webstore webhook if it isn't there
36-
const data = await getWebhookConfig(accessToken)
37-
if(!data.id) {
36+
const data = await getWebhookConfig(account.accessToken)
37+
if(!data?.id) {
3838
createWebhookConfig(account.access_token)
3939
}
4040

0 commit comments

Comments
 (0)