add paxeholder

This commit is contained in:
Pavel 2024-04-22 21:36:31 +03:00
parent ab32ce154e
commit 6f084f52a6
2 changed files with 4 additions and 4 deletions

@ -632,7 +632,7 @@ SELECT
(SELECT result_count FROM Results) AS results;
-- name: GetListStartQuiz :many
SELECT id FROM quiz WHERE accountid = '654a8909725f47e926f0bebc' AND status = 'start';
SELECT id FROM quiz WHERE accountid = $1 AND status = 'start';
-- name: GetListCreatedQuizzes :many
SELECT id

@ -934,11 +934,11 @@ func (q *Queries) GetListCreatedQuizzes(ctx context.Context, accountid string) (
}
const getListStartQuiz = `-- name: GetListStartQuiz :many
SELECT id FROM quiz WHERE accountid = '654a8909725f47e926f0bebc' AND status = 'start'
SELECT id FROM quiz WHERE accountid = $1 AND status = 'start'
`
func (q *Queries) GetListStartQuiz(ctx context.Context) ([]int64, error) {
rows, err := q.db.QueryContext(ctx, getListStartQuiz)
func (q *Queries) GetListStartQuiz(ctx context.Context, accountid string) ([]int64, error) {
rows, err := q.db.QueryContext(ctx, getListStartQuiz, accountid)
if err != nil {
return nil, err
}