Skip to content

Commit

Permalink
Replace hard coded serviceId
Browse files Browse the repository at this point in the history
  • Loading branch information
roughy committed Apr 25, 2019
1 parent 78f526b commit 5328873
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/vacation.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ var vacationDetailCommand = &cobra.Command{
return errors.New(textProjectOrServiceNotConfigured)
}

serviceId, err := strconv.Atoi(vacationActivity.ServiceId)
if err != nil {
return errors.New(textProjectOrServiceNotConfigured)
}

entries, err := application.MiteApi.TimeEntries(&domain.TimeEntryQuery{
At: entryListFilterAtThisYear,
ServiceId: 285835, // => user config, if not set explain how
ServiceId: domain.NewServiceId(serviceId),
})
if err != nil {
return err
Expand Down

0 comments on commit 5328873

Please sign in to comment.