update sqlc gen

This commit is contained in:
Pavel 2024-03-17 20:40:27 +03:00
parent 30e78b4dc5
commit 716f49bc49
2 changed files with 2 additions and 4 deletions

@ -545,7 +545,6 @@ WITH Funnel AS (
SELECT
q.id,
q.title,
a.content,
COUNT(*) AS total_answers
FROM
question q
@ -556,7 +555,7 @@ WITH Funnel AS (
AND a.created_at >= TO_TIMESTAMP($2)
AND a.created_at <= TO_TIMESTAMP($3)
GROUP BY
q.id, q.title, a.content
q.id, q.title
) q ON a.question_id = q.id
WHERE
a.quiz_id = $1

@ -1639,7 +1639,6 @@ WITH Funnel AS (
SELECT
q.id,
q.title,
a.content,
COUNT(*) AS total_answers
FROM
question q
@ -1650,7 +1649,7 @@ WITH Funnel AS (
AND a.created_at >= TO_TIMESTAMP($2)
AND a.created_at <= TO_TIMESTAMP($3)
GROUP BY
q.id, q.title, a.content
q.id, q.title
) q ON a.question_id = q.id
WHERE
a.quiz_id = $1