@@ -99,7 +99,7 @@ func (m *Mite) GetTimeEntriesForProjectByService(from, to time.Time, projectID u
99
99
100
100
func (m * Mite ) GetTimeEntry (id uint64 ) (* TimeEntry , error ) {
101
101
var timeResp * GetTimeEntryResponseWrapper
102
- err := m .getAndDecodeFromSuffix ("time_entry /" + strconv .FormatUint (id , 10 )+ ".json" , & timeResp , nil )
102
+ err := m .getAndDecodeFromSuffix ("time_entries /" + strconv .FormatUint (id , 10 )+ ".json" , & timeResp , nil )
103
103
if err != nil {
104
104
return nil , err
105
105
}
@@ -138,7 +138,7 @@ func (m *Mite) UpdateTimeEntry(id uint64, update *TimeEntry) error {
138
138
// Wrap time entry
139
139
wrap := & GetTimeEntryResponseWrapper {TimeEntry : update }
140
140
141
- resp , errRequest := m .patchAtMite ("/time_entry /" + strconv .FormatUint (id , 10 )+ ".json" , wrap )
141
+ resp , errRequest := m .patchAtMite ("/time_entries /" + strconv .FormatUint (id , 10 )+ ".json" , wrap )
142
142
if errRequest != nil {
143
143
return errRequest
144
144
}
@@ -153,7 +153,7 @@ func (m *Mite) UpdateTimeEntry(id uint64, update *TimeEntry) error {
153
153
// -------------------------------------------------------------
154
154
155
155
func (m * Mite ) DeleteTimeEntry (id uint64 ) error {
156
- resp , errRequest := m .deleteFromMite ("/time_entry /" + strconv .FormatUint (id , 10 )+ ".json" , nil )
156
+ resp , errRequest := m .deleteFromMite ("/time_entries /" + strconv .FormatUint (id , 10 )+ ".json" , nil )
157
157
if errRequest != nil {
158
158
return errRequest
159
159
}
0 commit comments