Skip to content

Commit

Permalink
Fix playback_id parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Crane <[email protected]>
  • Loading branch information
marcus-crane committed Aug 24, 2024
1 parent a084f51 commit 8e430de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func RegisterRoutes(mux *http.ServeMux, cfg config.Config, ps *playback.Playback
renderJSONMessage(w, "An ID did not appear to be provided")
return
}
playback_id, err := strconv.ParseInt(qVal.Get("id"), 10, 64)
playback_id, err := strconv.ParseInt(qVal.Get("playback_id"), 10, 0)
if err != nil {
renderJSONMessage(w, "That ID could not be converted into an integer")
return
Expand Down

0 comments on commit 8e430de

Please sign in to comment.