Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Sep 4, 2024
1 parent 1f18e7d commit b668966
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion internal/service/handlers/daily_question_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func CreateDailyQuestion(w http.ResponseWriter, r *http.Request) {

req, err := requests.NewDailyQuestion(r)
if err != nil {
Log(r).WithError(err).Error("Error get request NewDailyQuestion")
ape.RenderErr(w, problems.BadRequest(err)...)
return
}
Expand Down
5 changes: 1 addition & 4 deletions internal/service/handlers/daily_question_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ func EditDailyQuestion(w http.ResponseWriter, r *http.Request) {

req, err := requests.NewDailyQuestionEdit(r)
if err != nil {
Log(r).WithError(err).Error("Error creating daily question edit request")
ape.RenderErr(w, problems.BadRequest(validation.Errors{
"body": err,
})...)
ape.RenderErr(w, problems.BadRequest(err)...)
return
}
attributes := req.Data.Attributes
Expand Down

0 comments on commit b668966

Please sign in to comment.