We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb564de6 commitf07ccccCopy full SHA for f07cccc
coderd/workspaces.go
@@ -908,12 +908,12 @@ func claimPrebuild(
908
now time.Time,
909
namestring,
910
ownerworkspaceOwner,
911
-templateVersionPresetID uuid.UUID
+templateVersionPresetID uuid.UUID,
912
autostartSchedule sql.NullString,
913
nextStartAt sql.NullTime,
914
ttl sql.NullInt64,
915
) (*database.Workspace,error) {
916
-claimedID,err:=claimer.Claim(ctx,now,owner.ID,req.Name,req.TemplateVersionPresetID,autostartSchedule,nextStartAt,ttl)
+claimedID,err:=claimer.Claim(ctx,now,owner.ID,name,templateVersionPresetID,autostartSchedule,nextStartAt,ttl)
917
iferr!=nil {
918
// TODO: enhance this by clarifying whether this *specific* prebuild failed or whether there are none to claim.
919
returnnil,xerrors.Errorf("claim prebuild: %w",err)