Skip to content

Commit 6a3c056

Browse files
committed
Use body for getStats()
1 parent d4469e1 commit 6a3c056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/hasTimes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class hasTimes extends Base {
3434
*/
3535
getStats() {
3636
let promise = this.get(`projects/${this.data.project_id}/${this._type}/${this.iid}/time_stats`);
37-
promise.then(response => response.json()).then(response => this.stats = response);
37+
promise.then(response => this.stats = response.body);
3838

3939
return promise;
4040
}

0 commit comments

Comments
 (0)