mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 16:20:29 +00:00
how to handle decoding?
This commit is contained in:
@@ -43,7 +43,9 @@ func DecodeConfig(_ string, config any) (database.Connector, error) {
|
||||
}
|
||||
return &Config{config}, nil
|
||||
case map[string]any:
|
||||
return nil, errors.New("map configuration not implemented")
|
||||
return &Config{
|
||||
Config: &pgxpool.Config{},
|
||||
}, nil
|
||||
}
|
||||
return nil, errors.New("invalid configuration")
|
||||
}
|
||||
|
Reference in New Issue
Block a user