Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Prev Previous commit
Next Next commit
Use body for getStats()
  • Loading branch information
hkmoon committed Sep 26, 2019
commit 6a3c05697de0bccc48f91a49e7f32cf7cf2af8a3
2 changes: 1 addition & 1 deletion src/models/hasTimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class hasTimes extends Base {
*/
getStats() {
let promise = this.get(`projects/${this.data.project_id}/${this._type}/${this.iid}/time_stats`);
promise.then(response => response.json()).then(response => this.stats = response);
promise.then(response => this.stats = response.body);

return promise;
}
Expand Down