Skip to content

Commit b1ce65b

Browse files
committed
make gen
1 parent 4326816 commit b1ce65b

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

coderd/database/queries.sql.go

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/provisionerjobs.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ WHERE
2222
AND nested.canceled_at IS NULL
2323
AND nested.completed_at IS NULL
2424
AND nested.provisioner = ANY(@types :: provisioner_type [ ])
25-
-- Ensure tags are equal!
26-
AND nested.tags @> @tags :: jsonb
27-
AND nested.tags <@ @tags :: jsonb
25+
-- Ensure the caller satisfies all job tags.
26+
AND @tags :: jsonb @> nested.tags
2827
ORDER BY
2928
nested.created_at FOR
3029
UPDATE
@@ -64,10 +63,11 @@ INSERT INTO
6463
storage_method,
6564
file_id,
6665
"type",
67-
"input"
66+
"input",
67+
tags
6868
)
6969
VALUES
70-
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING *;
70+
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING *;
7171

7272
-- name: UpdateProvisionerJobByID :exec
7373
UPDATE

0 commit comments

Comments
 (0)