Skip to content
Merged
Prev Previous commit
Next Next commit
Use right ID
  • Loading branch information
Emyrk committed Jul 19, 2023
commit fc4a4002c8b9b3fabd83f238feec4ad937f4a4df
2 changes: 1 addition & 1 deletion enterprise/coderd/provisionerdaemons.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (*EnterpriseTemplateScheduleStore) SetTemplateScheduleOptions(ctx context.C
// This limitation is displayed to the user while editing the template.
if opts.MaxTTL > 0 {
err = db.UpdateWorkspaceTTLToBeWithinTemplateMax(ctx, database.UpdateWorkspaceTTLToBeWithinTemplateMaxParams{
TemplateID: template.ID,
TemplateID: tpl.ID,
TemplateMaxTTL: int64(opts.MaxTTL),
})
if err != nil {
Expand Down