From d32e4ca27f167239ffacee1a264a7742b2ed4028 Mon Sep 17 00:00:00 2001 From: MJRLegends Date: Thu, 19 Aug 2021 23:34:42 +0100 Subject: [PATCH] Mock API: Fixed invalid range for duration error message typo for Poll Post Endpoint --- internal/mock_api/endpoints/polls/polls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mock_api/endpoints/polls/polls.go b/internal/mock_api/endpoints/polls/polls.go index bacb8000..c1c9a1b5 100644 --- a/internal/mock_api/endpoints/polls/polls.go +++ b/internal/mock_api/endpoints/polls/polls.go @@ -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{