diff --git a/internal/service/handlers/daily_question_create.go b/internal/service/handlers/daily_question_create.go index dbedd37..3fd5d1b 100644 --- a/internal/service/handlers/daily_question_create.go +++ b/internal/service/handlers/daily_question_create.go @@ -34,7 +34,7 @@ func CreateDailyQuestion(w http.ResponseWriter, r *http.Request) { err := fmt.Errorf("invalid request data type %s", req.Data.Type) Log(r).WithError(err).Error("Invalid data type") ape.RenderErr(w, problems.BadRequest(validation.Errors{ - "type": fmt.Errorf("%v not alowed for this endpoint, must be %v err: %s", req.Data.Type, resources.DAILY_QUESTIONS, err), + "type": fmt.Errorf("%v not allowed for this endpoint, must be %v err: %s", req.Data.Type, resources.DAILY_QUESTIONS, err), })...) return } diff --git a/internal/service/handlers/daily_question_edit.go b/internal/service/handlers/daily_question_edit.go index dee1f6a..19380b6 100644 --- a/internal/service/handlers/daily_question_edit.go +++ b/internal/service/handlers/daily_question_edit.go @@ -45,7 +45,7 @@ func EditDailyQuestion(w http.ResponseWriter, r *http.Request) { err := fmt.Errorf("invalid request data type %s", req.Data.Type) Log(r).WithError(err).Error("Invalid data type") ape.RenderErr(w, problems.BadRequest(validation.Errors{ - "type": fmt.Errorf("%v not alowed for this endpoint, must be %v err: %s", req.Data.Type, resources.DAILY_QUESTIONS, err), + "type": fmt.Errorf("%v not allowed for this endpoint, must be %v err: %s", req.Data.Type, resources.DAILY_QUESTIONS, err), })...) return }