Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit d74a8af

Browse files
authored
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
1 parent 5bee6a7 commit d74a8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/issue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class issue extends hasTimes {
7171
}
7272

7373
get closed() {
74-
return !!this.data.closed;
74+
return this.data.state === 'closed';
7575
}
7676

7777
get updated_at() {
@@ -111,4 +111,4 @@ class issue extends hasTimes {
111111
}
112112
}
113113

114-
module.exports = issue;
114+
module.exports = issue;

0 commit comments

Comments
 (0)