Commit e6b42ba6 authored by Sonja Happ's avatar Sonja Happ
Browse files

Component Config: selected file ID is signed integer instead of uint (no file selected = -1)

parent afb311a8
......@@ -93,7 +93,7 @@ type ComponentConfiguration struct {
// Mapping of input signals of the Component Configuration, order of signals is important
InputMapping []Signal `json:"-" gorm:"foreignkey:ConfigID"`
// Currently selected FileID
SelectedFileID uint `json:"selectedFileID" gorm:"default:0"`
SelectedFileID int `json:"selectedFileID" gorm:"default:0"`
}
// Signal data model
......
......@@ -45,7 +45,7 @@ type ConfigRequest struct {
ScenarioID uint `json:"scenarioID,omitempty"`
ICID uint `json:"icID,omitempty"`
StartParameters postgres.Jsonb `json:"startParameters,omitempty"`
SelectedFileID uint `json:"selectedFileID,omitempty"`
SelectedFileID int `json:"selectedFileID,omitempty"`
}
type ICRequest struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment