fix: Use "data" scheme when creating parameters from the site (#3732)

Fixes #3691.
This commit is contained in:
Kyle Carberry
2022-08-29 11:32:57 -05:00
committed by GitHub
parent 34d902ebf1
commit 611ca55458
2 changed files with 3 additions and 3 deletions

View File

@ -54,8 +54,8 @@ type Parameter struct {
Scope ParameterScope `json:"scope" table:"scope"` Scope ParameterScope `json:"scope" table:"scope"`
ScopeID uuid.UUID `json:"scope_id" table:"scope id"` ScopeID uuid.UUID `json:"scope_id" table:"scope id"`
Name string `json:"name" table:"name"` Name string `json:"name" table:"name"`
SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme"` SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme" validate:"ne=none"`
DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme"` DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme" validate:"ne=none"`
CreatedAt time.Time `json:"created_at" table:"created at"` CreatedAt time.Time `json:"created_at" table:"created at"`
UpdatedAt time.Time `json:"updated_at" table:"updated at"` UpdatedAt time.Time `json:"updated_at" table:"updated at"`
} }

View File

@ -72,7 +72,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
createRequests.push({ createRequests.push({
name: schema.name, name: schema.name,
destination_scheme: schema.default_destination_scheme, destination_scheme: schema.default_destination_scheme,
source_scheme: schema.default_source_scheme, source_scheme: "data",
source_value: value, source_value: value,
}) })
}) })