Skip to content

Commit 1576831

Browse files
committed
FIX: update api endpoint
1 parent 4cd3d46 commit 1576831

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

time_enties.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (m *Mite) GetTimeEntriesForProjectByService(from, to time.Time, projectID u
9999

100100
func (m *Mite) GetTimeEntry(id uint64) (*TimeEntry, error) {
101101
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)
103103
if err != nil {
104104
return nil, err
105105
}
@@ -138,7 +138,7 @@ func (m *Mite) UpdateTimeEntry(id uint64, update *TimeEntry) error {
138138
// Wrap time entry
139139
wrap := &GetTimeEntryResponseWrapper{TimeEntry: update}
140140

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)
142142
if errRequest != nil {
143143
return errRequest
144144
}
@@ -153,7 +153,7 @@ func (m *Mite) UpdateTimeEntry(id uint64, update *TimeEntry) error {
153153
// -------------------------------------------------------------
154154

155155
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)
157157
if errRequest != nil {
158158
return errRequest
159159
}

0 commit comments

Comments
 (0)