Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Sep 18, 2021
1 parent f513d90 commit d8ccd53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
18 changes: 6 additions & 12 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit d8ccd53

Please sign in to comment.