File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
services/question-service/handlers Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -177,15 +177,6 @@ func (s *Service) ListQuestions(w http.ResponseWriter, r *http.Request) {
177
177
for _ , doc := range paginatedResults {
178
178
// Map data
179
179
var question models.Question
180
- //complexityStr, ok := doc.Data()["complexity"].(string)
181
- //if ok {
182
- // complexity, err := models.ParseComplexity(complexityStr)
183
- // if err != nil {
184
- // http.Error(w, "Invalid complexity level in question: "+err.Error(), http.StatusInternalServerError)
185
- // return
186
- // }
187
- // question.Complexity = complexity
188
- //}
189
180
if err := doc .DataTo (& question ); err != nil {
190
181
http .Error (w , "Failed to parse question: " + err .Error (), http .StatusInternalServerError )
191
182
return
You can’t perform that action at this time.
0 commit comments