Skip to content

Commit

Permalink
Fix reset month feedback message
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoar committed Apr 29, 2022
1 parent d0d077a commit f9c7b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factorial/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ func (c *factorialClient) ResetMonth() {
t = time.Date(c.year, time.Month(c.month), shift.Day, 0, 0, 0, 0, time.UTC)
message = fmt.Sprintf("%s... ", t.Format("02 Jan"))
if resp.StatusCode != 204 {
fmt.Print(fmt.Sprintf("%s ❌ Error when attempting to delete shift: %d, %s - %s\n", message, shift.Day, shift.Clock_in, shift.Clock_out))
fmt.Print(fmt.Sprintf("%s ❌ Error when attempting to delete shift: %s - %s\n", message, shift.Clock_in, shift.Clock_out))
} else {
fmt.Print(fmt.Sprintf("%s ✅ Shift deleted: %d, %s - %s\n", message, shift.Day, shift.Clock_in, shift.Clock_out))
fmt.Print(fmt.Sprintf("%s ✅ Shift deleted: %s - %s\n", message, shift.Clock_in, shift.Clock_out))
}
defer resp.Body.Close()
}
Expand Down

0 comments on commit f9c7b6c

Please sign in to comment.