Skip to content

Commit

Permalink
Merge pull request #192 from bruin-data/patch/connection-removing-duc…
Browse files Browse the repository at this point in the history
…kdb-fix

add duckdb type
  • Loading branch information
albertobruin authored Nov 12, 2024
2 parents b6cb5b1 + 7f365a1 commit fc7f5ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (c GoogleSheetsConnection) GetName() string {

type ChessConnection struct {
Name string `yaml:"name" json:"name" mapstructure:"name"`
Players []string `yaml:"players" json:"players" mapstructure:"players"`
Players []string `yaml:"players" json:"players" mapstructure:"players" jsonschema:"default=MagnusCarlsen,default=HikaruNakamura,default=ArjunErigaisi"`
}

func (c ChessConnection) GetName() string {
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,8 @@ func (c *Config) DeleteConnection(environmentName, connectionName string) error
env.Connections.Slack = removeConnection(env.Connections.Slack, connectionName)
case "zendesk":
env.Connections.Zendesk = removeConnection(env.Connections.Zendesk, connectionName)
case "duckdb":
env.Connections.DuckDB = removeConnection(env.Connections.DuckDB, connectionName)
default:
return fmt.Errorf("unsupported connection type: %s", connType)
}
Expand Down

0 comments on commit fc7f5ae

Please sign in to comment.