Skip to content

Commit

Permalink
Fix tracker response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Lissé committed Apr 5, 2019
1 parent f43cd10 commit 50749cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mite/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type trackerResponse struct {
Since time.Time `json:"since"`
} `json:"tracking_time_entry"`
StoppedTimeEntry *struct {
Id string `json:"id"`
Minutes int `json:"minutes"`
Id int `json:"id"`
Minutes int `json:"minutes"`
} `json:"stopped_time_entry"`
} `json:"tracker"`
}
Expand All @@ -49,8 +49,8 @@ func (r *trackerResponse) toStoppedTimeEntry() *StoppedTimeEntry {
}

return &StoppedTimeEntry{
Id: strconv.Itoa(r.Tracker.TrackingTimeEntry.Id),
Duration: time.Duration(r.Tracker.TrackingTimeEntry.Minutes) * time.Minute,
Id: strconv.Itoa(r.Tracker.StoppedTimeEntry.Id),
Duration: time.Duration(r.Tracker.StoppedTimeEntry.Minutes) * time.Minute,
}
}

Expand Down

0 comments on commit 50749cd

Please sign in to comment.