Skip to content

Commit

Permalink
fix misspell
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Aug 29, 2024
1 parent 44f57f9 commit 394e269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/service/handlers/daily_question_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/service/handlers/daily_question_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 394e269

Please sign in to comment.