🗃️ increase amount of answers needed per question
Co-authored-by: haraldnilsen <harald_998@hotmail.com> Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
db05443ed7
commit
7d1fae8265
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue