Skip to content

Commit

Permalink
Merge pull request #85 from hkmoon/master
Browse files Browse the repository at this point in the history
issue data does not have "closed" property
  • Loading branch information
kriskbx committed Feb 11, 2019
2 parents 5bee6a7 + d74a8af commit e059f1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class issue extends hasTimes {
}

get closed() {
return !!this.data.closed;
return this.data.state === 'closed';
}

get updated_at() {
Expand Down Expand Up @@ -111,4 +111,4 @@ class issue extends hasTimes {
}
}

module.exports = issue;
module.exports = issue;

0 comments on commit e059f1f

Please sign in to comment.