Skip to content

Commit 965a12c

Browse files
authored
Merge pull request #94 from MJRLegends/main
Mock API: Fixed invalid range for duration error message typo for Poll Post Endpoint
2 parents f71e161 + d32e4ca commit 965a12c

File tree

1 file changed

+1
-1
lines changed
  • internal/mock_api/endpoints/polls

1 file changed

+1
-1
lines changed

internal/mock_api/endpoints/polls/polls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func postPolls(w http.ResponseWriter, r *http.Request) {
157157
}
158158

159159
if body.Duration < 15 || body.Duration > 1800 {
160-
mock_errors.WriteBadRequest(w, "duation must be at least 15 and at most 1800")
160+
mock_errors.WriteBadRequest(w, "duration must be at least 15 and at most 1800")
161161
return
162162
}
163163
poll := database.Poll{

0 commit comments

Comments
 (0)