fix: retrieved database count does not match
This commit is contained in:
parent
ab2056ba3e
commit
97f6ded7e0
|
@ -328,7 +328,7 @@ func (c *connectionService) OpenConnection(name string) (resp types.JSResp) {
|
|||
selConn := c.conns.GetConnection(name)
|
||||
|
||||
totaldb := 16
|
||||
if selConn.DBFilterType == "none" {
|
||||
if selConn.DBFilterType == "" || selConn.DBFilterType == "none" {
|
||||
// get total databases
|
||||
if config, err := rdb.ConfigGet(ctx, "databases").Result(); err == nil {
|
||||
if total, err := strconv.Atoi(config["databases"]); err == nil {
|
||||
|
|
Loading…
Reference in New Issue