diff --git a/backend/cmd/db/get_user_questions.go b/backend/cmd/db/get_user_questions.go index c6c4a8d..a0a1a77 100644 --- a/backend/cmd/db/get_user_questions.go +++ b/backend/cmd/db/get_user_questions.go @@ -53,7 +53,7 @@ func GetUserQuestions(respondentID int) ([]UserQuestions, error) { FROM Spørsmålsvar ss LEFT JOIN SvarVurdering sv ON ss.svarID = sv.svarID GROUP BY ss.spørsmålID - HAVING COUNT(sv.vurderingID) < 3 + HAVING COUNT(sv.vurderingID) < 5 ) AS subquery ON s.spørsmålID = subquery.spørsmålID WHERE subquery.spørsmålID IS NOT NULL LIMIT 5 @@ -155,4 +155,4 @@ func GetUserQuestions(respondentID int) ([]UserQuestions, error) { } return questionAnswers, nil -} \ No newline at end of file +}