Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
this.data does not have closed property
gitlab api does not have ```closed``` property in the json data.
```state``` property contains either ```closed``` or ```opened``` value instead.
Please, refer https://docs.gitlab.com/ee/api/issues.html
  • Loading branch information
hkmoon authored Feb 11, 2019
commit d74a8afc21028f4f2074224a02192f09dda3d14d
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;