From d74a8afc21028f4f2074224a02192f09dda3d14d Mon Sep 17 00:00:00 2001 From: HongKee Moon Date: Mon, 11 Feb 2019 14:12:10 +0100 Subject: [PATCH] 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 --- src/models/issue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/issue.js b/src/models/issue.js index d756505..adeed56 100755 --- a/src/models/issue.js +++ b/src/models/issue.js @@ -71,7 +71,7 @@ class issue extends hasTimes { } get closed() { - return !!this.data.closed; + return this.data.state === 'closed'; } get updated_at() { @@ -111,4 +111,4 @@ class issue extends hasTimes { } } -module.exports = issue; \ No newline at end of file +module.exports = issue;