Skip to content

Commit

Permalink
fix broken code that prevent jobs from loading in ui (#14849)
Browse files Browse the repository at this point in the history
  • Loading branch information
krehermann authored Oct 18, 2024
1 parent cbfb1ff commit 505e43d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/services/job/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,13 @@ func (ofc OracleFactoryConfig) Value() (driver.Value, error) {

// Scan reads the database value and returns an instance.
func (ofc *OracleFactoryConfig) Scan(value interface{}) error {
if value == nil {
return nil // field is nullable
}

b, ok := value.([]byte)
if !ok {
return errors.Errorf("expected bytes got %T", b)
return errors.Errorf("expected bytes got %T", value)
}
return json.Unmarshal(b, &ofc)
}
Expand Down

0 comments on commit 505e43d

Please sign in to comment.