Skip to content

Commit

Permalink
Mock API: Fixed invalid range for duration error message typo for Pol…
Browse files Browse the repository at this point in the history
…l Post Endpoint
  • Loading branch information
MJRLegends authored Aug 19, 2021
1 parent f71e161 commit d32e4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mock_api/endpoints/polls/polls.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func postPolls(w http.ResponseWriter, r *http.Request) {
}

if body.Duration < 15 || body.Duration > 1800 {
mock_errors.WriteBadRequest(w, "duation must be at least 15 and at most 1800")
mock_errors.WriteBadRequest(w, "duration must be at least 15 and at most 1800")
return
}
poll := database.Poll{
Expand Down

0 comments on commit d32e4ca

Please sign in to comment.