refactor: Return template version name in the workspace build API (#5178)

This commit is contained in:
Bruno Quaresma
2022-11-28 16:53:56 -03:00
committed by GitHub
parent ab9298f382
commit d402914eb7
9 changed files with 160 additions and 54 deletions

View File

@ -69,6 +69,14 @@ FROM
WHERE
id = $1;
-- name: GetTemplateVersionsByIDs :many
SELECT
*
FROM
template_versions
WHERE
id = ANY(@ids :: uuid [ ]);
-- name: InsertTemplateVersion :one
INSERT INTO
template_versions (