Skip to content

Commit

Permalink
fix list url query usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Oct 2, 2023
1 parent bec4267 commit feba241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/transports/api/servers/h_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (s *service) list(w http.ResponseWriter, r *http.Request) {
since = 12
}

list, err := s.storer.GetAll(r.Context(), time.Duration(since)*time.Hour)
list, err := s.storer.GetAll(r.Context(), time.Duration(-since)*time.Hour)
if err != nil {
web.StatusInternalServerError(w, errors.Wrap(err, "failed to get list of servers"))
return
Expand Down

0 comments on commit feba241

Please sign in to comment.