From 7d1fae8265117751dd5cfd6dcc98ca1723fd6d74 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Fri, 26 Jan 2024 14:37:25 +0100 Subject: [PATCH] :card_file_box: increase amount of answers needed per question Co-authored-by: haraldnilsen Signed-off-by: Sindre Kjelsrud --- backend/cmd/db/get_user_questions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}