Skip to content

Commit

Permalink
Merge pull request #761 from isucon/fix/go-owner-get-sales-error
Browse files Browse the repository at this point in the history
fix(go): ownerGetSalesでのエラーハンドリングの修正
  • Loading branch information
sapphi-red authored Dec 7, 2024
2 parents 6c11b0e + ef213f5 commit 02ef8b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/go/owner_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ func ownerGetSales(w http.ResponseWriter, r *http.Request) {
parsed, err := strconv.ParseInt(r.URL.Query().Get("since"), 10, 64)
if err != nil {
writeError(w, http.StatusBadRequest, err)
return
}
since = time.UnixMilli(parsed)
}
if r.URL.Query().Get("until") != "" {
parsed, err := strconv.ParseInt(r.URL.Query().Get("until"), 10, 64)
if err != nil {
writeError(w, http.StatusBadRequest, err)
return
}
until = time.UnixMilli(parsed)
}
Expand Down

0 comments on commit 02ef8b0

Please sign in to comment.