mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: Allow to stop or remove workspaces using rich and old parameters (#6099)
* fix: Allow to stop or remove workspaces using rich and old parameters * Fix
This commit is contained in:
@ -518,7 +518,8 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if len(legacyParameters) > 0 && len(parameters) > 0 {
|
||||
if createBuild.Transition == codersdk.WorkspaceTransitionStart &&
|
||||
len(legacyParameters) > 0 && len(parameters) > 0 {
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: "Rich parameters can't be used together with legacy parameters.",
|
||||
})
|
||||
|
Reference in New Issue
Block a user