Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85bc72f

Browse files
committed
fix
1 parent 33e75d9 commit 85bc72f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

coderd/templateversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (api *API) templateVersionVariables(rw http.ResponseWriter, r *http.Request
282282
return
283283
}
284284

285-
templateVersionVariables, err := convertTemplateVersionParameters(dbTemplateVersionVariables)
285+
templateVersionVariables, err := convertTemplateVersionVariables(dbTemplateVersionVariables)
286286
if err != nil {
287287
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{
288288
Message: "Internal error converting template version parameter.",

site/src/api/typesGenerated.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,17 @@ export interface TemplateVersionParameterOption {
774774
readonly icon: string
775775
}
776776

777+
// From codersdk/templateversions.go
778+
export interface TemplateVersionVariable {
779+
readonly name: string
780+
readonly description: string
781+
readonly type: string
782+
readonly value: string
783+
readonly default_value: string
784+
readonly required: boolean
785+
readonly sensitive: boolean
786+
}
787+
777788
// From codersdk/templates.go
778789
export interface TemplateVersionsByTemplateRequest extends Pagination {
779790
readonly template_id: string

0 commit comments

Comments
 (0)