Skip to content

Commit

Permalink
fix: add debug condition to check issue body
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Sep 5, 2024
1 parent 960663d commit 8e1333c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98891,6 +98891,11 @@ var __webpack_exports__ = {}
const issue = edge.node
const parsedBody = await v(issue.body)

if (process.env.DEBUG === 'true') {
console.log('issue', issue)
console.log('parsedBody', parsedBody)
}

if (parsedBody && Object.keys(parsedBody).length > 0) {
const startTime = parsedBody.time
const startDate = parsedBody.date
Expand Down
5 changes: 5 additions & 0 deletions src/fetch-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export async function fetchIssues(
const issue = edge.node
const parsedBody = await bodyParser(issue.body)

if (process.env.DEBUG === 'true') {
console.log('issue', issue)
console.log('parsedBody', parsedBody)
}

if (parsedBody && Object.keys(parsedBody).length > 0) {
const startTime = parsedBody.time
const startDate = parsedBody.date
Expand Down

0 comments on commit 8e1333c

Please sign in to comment.