diff --git a/dist/index.js b/dist/index.js index a1ec548..f46a114 100644 --- a/dist/index.js +++ b/dist/index.js @@ -242,13 +242,13 @@ class App { } } async issueOpened(issue) { - const { title, state, id, html_url, body } = issue; + console.log(issue); await this.notion.createPage({ - title, - state, - id, - url: html_url, - body: body || '' + title: issue.title, + id: issue.id, + state: issue.state, + url: issue.html_url, + body: issue.body || '' }); console.log('✅ Issue successfully Synced'); } diff --git a/src/app.ts b/src/app.ts index 83be967..7c517f0 100644 --- a/src/app.ts +++ b/src/app.ts @@ -36,19 +36,13 @@ export class App { } private async issueOpened(issue: Issue) { - const { - title, - state, - id, - html_url, - body - } = issue; + console.log(issue); await this.notion.createPage({ - title, - state, - id, - url: html_url, - body: body || '' + title: issue.title, + id: issue.id, + state: issue.state, + url: issue.html_url, + body: issue.body || '' }) console.log('✅ Issue successfully Synced'); }